diff --git a/.eslintignore b/.eslintignore index 2d04417b2..a65e157f5 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,17 +1,21 @@ +landing/dist +landing/flow-typed +landing/node_modules lib/flow-typed lib/node_modules web/dist web/flow-typed web/node_modules server/app_compiled server/landing_compiled server/dist server/secrets server/facts server/fonts server/flow-typed server/node_modules +server/src/landing server/src/lib server/src/web native/flow-typed native/node_modules diff --git a/.lintstagedrc.js b/.lintstagedrc.js index ba9226301..8b14ad332 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,24 +1,25 @@ const { CLIEngine } = require('eslint'); const cli = new CLIEngine({}); module.exports = { - '*.js': (files) => + '*.{js,mjs,cjs}': (files) => 'eslint --cache --fix --max-warnings=0 ' + files.filter((file) => !cli.isPathIgnored(file)).join(' '), + '*.{css,html,md,json}': 'prettier --write', 'lib/**/*.js': function libFlow(files) { return 'yarn workspace lib flow --quiet'; }, '{web,lib}/**/*.js': function webFlow(files) { return 'yarn workspace web flow --quiet'; }, '{native,lib}/**/*.js': function nativeFlow(files) { return 'yarn workspace native flow --quiet'; }, '{server,web,lib}/**/*.js': function serverFlow(files) { return 'yarn workspace server flow --quiet'; }, '{landing,lib}/**/*.js': function serverFlow(files) { return 'yarn workspace landing flow --quiet'; }, }; diff --git a/.prettierignore b/.prettierignore index 129f0b86d..e991bb063 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,11 +1,18 @@ +landing/dist +landing/flow-typed lib/flow-typed web/dist web/flow-typed server/app_compiled server/landing_compiled server/dist server/secrets server/facts server/fonts server/flow-typed +server/src/landing +server/src/lib +server/src/web +native/android native/flow-typed +native/ios