-
-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove tslint in favour of eslint (#834)
* chore: created eslint configs in each package - fixed typescript types - removed tslint commands - fixed tests * chore: removed comment * chore: removed lines that belong to tslint
- Loading branch information
Showing
93 changed files
with
3,365 additions
and
3,599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,61 @@ | ||
module.exports = { | ||
"root": true, | ||
"plugins": ["node"], | ||
"extends": ["eslint:recommended", "plugin:node/recommended"], | ||
"env": { | ||
"node": true, | ||
"es6": true, | ||
"jest": true | ||
extends: ["eslint:recommended"], | ||
env: { | ||
node: true, | ||
es6: true, | ||
jest: true | ||
}, | ||
"parserOptions": { "ecmaVersion": 2017, "sourceType": "module"}, | ||
"rules": { | ||
parserOptions: { ecmaVersion: 2017, sourceType: "module" }, | ||
rules: { | ||
"no-useless-escape": "off", | ||
"quote-props": ["error", "as-needed"], | ||
"no-dupe-keys": "error", | ||
"quotes": ["error", "double"], | ||
quotes: ["error", "double"], | ||
"no-undef": "error", | ||
"no-extra-semi": "error", | ||
"semi": "error", | ||
semi: "error", | ||
"no-template-curly-in-string": "error", | ||
"no-caller": "error", | ||
"yoda": "error", | ||
"eqeqeq": "error", | ||
yoda: "error", | ||
eqeqeq: "error", | ||
"global-require": "off", | ||
"brace-style": "error", | ||
"key-spacing": "error", | ||
"space-in-parens": ["error", "never"], | ||
"space-infix-ops": "error", | ||
"indent": ["error", "tab", { "SwitchCase": 1 }], | ||
indent: ["error", "tab", { SwitchCase: 1 }], | ||
"no-extra-bind": "warn", | ||
"no-empty": "off", | ||
"no-multiple-empty-lines": "error", | ||
"no-multi-spaces": "error", | ||
"no-process-exit": "off", | ||
"no-trailing-spaces": "error", | ||
"no-use-before-define": "off", | ||
"no-unused-vars": ["error", { "args": "none" }], | ||
"no-unused-vars": ["error", { args: "none" }], | ||
"no-unsafe-negation": "error", | ||
"no-loop-func": "warn", | ||
"space-before-function-paren": ["error", "never"], | ||
"space-before-blocks": "error", | ||
"object-curly-spacing": ["error", "always"], | ||
"object-curly-newline": ["error", { "consistent": true }], | ||
"keyword-spacing": ["error", { | ||
"after": true, | ||
"overrides": { | ||
"const": { "after": true }, | ||
"try": { "after": true }, | ||
"throw": { "after": true }, | ||
"case": { "after": true }, | ||
"return": { "after": true }, | ||
"finally": { "after": true }, | ||
"do": { "after": true } | ||
} | ||
}], | ||
"no-console": "off", | ||
"valid-jsdoc": "error", | ||
"node/no-unsupported-features": ["error", { "version": 6 }], | ||
"node/no-deprecated-api": "error", | ||
"node/no-missing-import": "error", | ||
"node/no-missing-require": [ | ||
"error", | ||
{ | ||
"resolvePaths": ["./packages"], | ||
"allowModules": [ | ||
"webpack", | ||
"@webpack-cli/generators", | ||
"@webpack-cli/init", | ||
"@webpack-cli/migrate", | ||
"@webpack-cli/utils", | ||
"@webpack-cli/generate-loader", | ||
"@webpack-cli/generate-plugin", | ||
"@webpack-cli/webpack-scaffold" | ||
] | ||
} | ||
], | ||
"node/no-unpublished-bin": "error", | ||
"node/no-unpublished-require": [ | ||
"object-curly-newline": ["error", { consistent: true }], | ||
"keyword-spacing": [ | ||
"error", | ||
{ | ||
"allowModules": [ | ||
"webpack", | ||
"webpack-dev-server", | ||
"@webpack-cli/generators", | ||
"@webpack-cli/init", | ||
"@webpack-cli/migrate", | ||
"@webpack-cli/utils", | ||
"@webpack-cli/generate-loader", | ||
"@webpack-cli/generate-plugin", | ||
"@webpack-cli/webpack-scaffold" | ||
] | ||
} | ||
], | ||
"node/no-extraneous-require": [ | ||
"error", | ||
{ | ||
"allowModules": [ | ||
"@webpack-cli/migrate", | ||
"@webpack-cli/generators", | ||
"@webpack-cli/utils", | ||
"@webpack-cli/generate-loader", | ||
"@webpack-cli/generate-plugin", | ||
"@webpack-cli/webpack-scaffold" | ||
] | ||
after: true, | ||
overrides: { | ||
const: { after: true }, | ||
try: { after: true }, | ||
throw: { after: true }, | ||
case: { after: true }, | ||
return: { after: true }, | ||
finally: { after: true }, | ||
do: { after: true } | ||
} | ||
} | ||
], | ||
"no-console": "off", | ||
"valid-jsdoc": "error", | ||
"eol-last": ["error", "always"], | ||
"newline-per-chained-call": "off", | ||
"node/process-exit-as-throw": "error" | ||
"newline-per-chained-call": "off" | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ yarn.lock | |
|
||
# source maps of docs | ||
docs/**/*.map | ||
junit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
module.exports = { | ||
root: true, | ||
plugins: ["node"], | ||
extends: ["../.eslintrc.js", "plugin:node/recommended"], | ||
env: { | ||
node: true, | ||
es6: true, | ||
jest: true | ||
}, | ||
parserOptions: { ecmaVersion: 2017, sourceType: "module" }, | ||
rules: { | ||
"node/no-unsupported-features": ["error", { version: 6 }], | ||
"node/no-deprecated-api": "error", | ||
"node/no-missing-import": "error", | ||
"node/no-missing-require": [ | ||
"error", | ||
{ | ||
resolvePaths: ["./packages"], | ||
allowModules: [ | ||
"webpack", | ||
"@webpack-cli/generators", | ||
"@webpack-cli/init", | ||
"@webpack-cli/migrate", | ||
"@webpack-cli/utils", | ||
"@webpack-cli/generate-loader", | ||
"@webpack-cli/generate-plugin", | ||
"@webpack-cli/webpack-scaffold" | ||
] | ||
} | ||
], | ||
"node/no-unpublished-bin": "error", | ||
"node/no-unpublished-require": [ | ||
"error", | ||
{ | ||
allowModules: [ | ||
"webpack", | ||
"webpack-dev-server", | ||
"@webpack-cli/generators", | ||
"@webpack-cli/init", | ||
"@webpack-cli/migrate", | ||
"@webpack-cli/utils", | ||
"@webpack-cli/generate-loader", | ||
"@webpack-cli/generate-plugin", | ||
"@webpack-cli/webpack-scaffold" | ||
] | ||
} | ||
], | ||
"node/no-extraneous-require": [ | ||
"error", | ||
{ | ||
allowModules: [ | ||
"@webpack-cli/migrate", | ||
"@webpack-cli/generators", | ||
"@webpack-cli/utils", | ||
"@webpack-cli/generate-loader", | ||
"@webpack-cli/generate-plugin", | ||
"@webpack-cli/webpack-scaffold" | ||
] | ||
} | ||
], | ||
"node/process-exit-as-throw": "error" | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.