Adding ESLint config and required dev dependencies
This commit is contained in:
parent
6567bffcb9
commit
06765f9340
4 changed files with 1432 additions and 1 deletions
5
.eslintignore
Normal file
5
.eslintignore
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
**/webpack.config.js
|
||||||
|
lib/**
|
||||||
|
runner/dist/**
|
||||||
|
src/testdata/**
|
||||||
|
tests/**
|
||||||
32
.eslintrc.json
Normal file
32
.eslintrc.json
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
|
||||||
|
{
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"parserOptions": {
|
||||||
|
"project": "./tsconfig.json"
|
||||||
|
},
|
||||||
|
"plugins": ["@typescript-eslint", "filenames", "github", "import", "no-async-foreach"],
|
||||||
|
"extends": [
|
||||||
|
"eslint:recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
||||||
|
"plugin:github/recommended",
|
||||||
|
"plugin:github/typescript"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"filenames/match-regex": ["error", "^[a-z0-9-]+(\\.test)?$"],
|
||||||
|
"import/extensions": "error",
|
||||||
|
"import/no-amd": "error",
|
||||||
|
"import/no-commonjs": "error",
|
||||||
|
"import/no-dynamic-require": "error",
|
||||||
|
"import/no-extraneous-dependencies": ["error", {"devDependencies": false}],
|
||||||
|
"import/no-namespace": "off",
|
||||||
|
"import/no-unresolved": "error",
|
||||||
|
"import/no-webpack-loader-syntax": "error",
|
||||||
|
"no-async-foreach/no-async-foreach": "error",
|
||||||
|
"no-console": "off",
|
||||||
|
"no-sequences": "error",
|
||||||
|
"one-var": ["error", "never"],
|
||||||
|
"sort-imports": ["error", { "allowSeparatedGroups": true }]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
1388
package-lock.json
generated
1388
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -46,7 +46,13 @@
|
||||||
"@types/node": "^12.0.4",
|
"@types/node": "^12.0.4",
|
||||||
"@types/semver": "^7.2.0",
|
"@types/semver": "^7.2.0",
|
||||||
"@types/sinon": "^7.2.0",
|
"@types/sinon": "^7.2.0",
|
||||||
|
"@typescript-eslint/parser": "^4.1.0",
|
||||||
"ava": "3.8.1",
|
"ava": "3.8.1",
|
||||||
|
"eslint": "^7.9.0",
|
||||||
|
"eslint-plugin-filenames": "^1.3.2",
|
||||||
|
"eslint-plugin-github": "^4.1.1",
|
||||||
|
"eslint-plugin-import": "^2.22.0",
|
||||||
|
"eslint-plugin-no-async-foreach": "^0.1.1",
|
||||||
"micromatch": "4.0.2",
|
"micromatch": "4.0.2",
|
||||||
"nock": "^12.0.3",
|
"nock": "^12.0.3",
|
||||||
"removeNPMAbsolutePaths": "2.0.0",
|
"removeNPMAbsolutePaths": "2.0.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue