Skip to content

Commit 682eb7e

Browse files
authoredJun 29, 2020
feat: add package scope-manager (typescript-eslint#1939)
1 parent 5c91bee commit 682eb7e

File tree

607 files changed

+45334
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

607 files changed

+45334
-54
lines changed
 

‎.cspell.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"**/*.{json,snap}",
1313
".cspell.json",
1414
"yarn.lock",
15-
".github/workflows/**"
15+
".github/workflows/**",
16+
".vscode/*.json"
1617
],
1718
"dictionaries": [
1819
"typescript",
@@ -57,6 +58,7 @@
5758
"ESLint",
5859
"ESLint's",
5960
"espree",
61+
"esrecurse",
6062
"estree",
6163
"IDE's",
6264
"IIFE",
@@ -75,11 +77,13 @@
7577
"Premade",
7678
"prettier's",
7779
"recurse",
80+
"redeclared",
7881
"reimplement",
7982
"resync",
8083
"ROADMAP",
8184
"ruleset",
8285
"rulesets",
86+
"serializers",
8387
"superset",
8488
"thenables",
8589
"transpiles",

‎.eslintrc.js

+18
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ module.exports = {
5555
'@typescript-eslint/prefer-nullish-coalescing': 'error',
5656
'@typescript-eslint/prefer-optional-chain': 'error',
5757
'@typescript-eslint/unbound-method': 'off',
58+
'@typescript-eslint/prefer-as-const': 'error',
59+
'@typescript-eslint/no-unused-vars': [
60+
'warn',
61+
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
62+
],
5863

5964
// TODO - enable these new recommended rules
6065
'@typescript-eslint/no-floating-promises': 'off',
@@ -224,5 +229,18 @@ module.exports = {
224229
'no-console': 'off',
225230
},
226231
},
232+
// generated files
233+
{
234+
files: [
235+
'packages/scope-manager/src/lib/*.ts',
236+
'packages/eslint-plugin/src/configs/*.ts',
237+
],
238+
rules: {
239+
// allow console logs in tools and tests
240+
'@typescript-eslint/internal/no-poorly-typed-ts-props': 'off',
241+
'@typescript-eslint/internal/no-typescript-default-import': 'off',
242+
'@typescript-eslint/internal/prefer-ast-types-enum': 'off',
243+
},
244+
},
227245
],
228246
};

0 commit comments

Comments
 (0)