Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Adding ESLint config and required dev dependencies
- Loading branch information
Chris Raynor
committed
Sep 14, 2020
1 parent
6567bff
commit 06765f934041767c84047a3ffbd0327a62d5bd4d
Showing
4 changed files
with
1,432 additions
and
1 deletion.
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
@@ -0,0 +1,5 @@ | ||
**/webpack.config.js | ||
lib/** | ||
runner/dist/** | ||
src/testdata/** | ||
tests/** |
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
@@ -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 }] | ||
} | ||
} | ||
|
Oops, something went wrong.