-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: fix tabbing to use 4 spaces (#17)
- Loading branch information
1 parent
b29c499
commit 5d93ab3
Showing
35 changed files
with
6,417 additions
and
6,422 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,116 +1,113 @@ | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'es2021': true | ||
}, | ||
'extends': [ | ||
'eslint:recommended', | ||
'plugin:jsonc/recommended-with-jsonc' | ||
], | ||
'overrides': [ | ||
{ | ||
'env': { | ||
'node': true | ||
}, | ||
'files': [ | ||
'.eslintrc.{js,cjs}' | ||
], | ||
'parserOptions': { | ||
'sourceType': 'script' | ||
} | ||
}, | ||
{ | ||
'files': ['*.json', '*.json5', '*.jsonc'], | ||
'parser': 'jsonc-eslint-parser', | ||
}, | ||
{ | ||
'files': ['*.ts', '*.tsx'], | ||
'plugins': [ | ||
'import' | ||
], | ||
'extends': [ | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
], | ||
'parserOptions': { | ||
'project': ['./tsconfig.json'], | ||
}, | ||
'settings': { | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'] | ||
}, | ||
'import/resolver': { | ||
'typescript': { | ||
'alwaysTryTypes': true, | ||
'project': './tsconfig.json' | ||
} | ||
} | ||
}, | ||
'rules': { | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
{ | ||
selector: 'variable', | ||
format: ['camelCase', 'PascalCase', 'UPPER_CASE'] | ||
}, | ||
{ | ||
selector: 'typeProperty', | ||
format: ['camelCase', 'PascalCase', 'UPPER_CASE'] | ||
} | ||
], | ||
'@typescript-eslint/no-unsafe-assignment': [ | ||
'off' | ||
], | ||
'import/named': 'error', | ||
'@typescript-eslint/type-annotation-spacing': 'error', | ||
'no-multiple-empty-lines': [ | ||
'error', | ||
{ max: 1 } | ||
], | ||
'@typescript-eslint/member-delimiter-style': [ | ||
'error', | ||
{ | ||
'multiline': { | ||
'delimiter': 'semi', | ||
'requireLast': true | ||
}, | ||
'singleline': { | ||
'delimiter': 'semi', | ||
'requireLast': false | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
'parser': '@typescript-eslint/parser', | ||
'parserOptions': { | ||
'ecmaVersion': 'latest', | ||
'sourceType': 'module', | ||
}, | ||
'plugins': [ | ||
'@typescript-eslint', | ||
'@stylistic/js', | ||
], | ||
'ignorePatterns': ['**/docs/*', '**/lib/*', '**/bin/*'], | ||
'rules': { | ||
'indent': [ | ||
'error', | ||
'tab' | ||
], | ||
'quotes': [ | ||
'error', | ||
'single' | ||
], | ||
'semi': [ | ||
'error', | ||
'always' | ||
], | ||
'no-console': [ | ||
'error' | ||
], | ||
'@stylistic/js/no-trailing-spaces': [ | ||
'error' | ||
], | ||
} | ||
'env': { | ||
'browser': true, | ||
'es2021': true | ||
}, | ||
'extends': [ | ||
'eslint:recommended', | ||
'plugin:jsonc/recommended-with-jsonc' | ||
], | ||
'overrides': [ | ||
{ | ||
'env': { | ||
'node': true | ||
}, | ||
'files': [ | ||
'.eslintrc.{js,cjs}' | ||
], | ||
'parserOptions': { | ||
'sourceType': 'script' | ||
} | ||
}, | ||
{ | ||
'files': ['*.json', '*.json5', '*.jsonc'], | ||
'parser': 'jsonc-eslint-parser', | ||
}, | ||
{ | ||
'files': ['*.ts', '*.tsx'], | ||
'plugins': [ | ||
'import' | ||
], | ||
'extends': [ | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
], | ||
'parserOptions': { | ||
'project': ['./tsconfig.json'], | ||
}, | ||
'settings': { | ||
'import/parsers': { | ||
'@typescript-eslint/parser': ['.ts', '.tsx'] | ||
}, | ||
'import/resolver': { | ||
'typescript': { | ||
'alwaysTryTypes': true, | ||
'project': './tsconfig.json' | ||
} | ||
} | ||
}, | ||
'rules': { | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
{ | ||
selector: 'variable', | ||
format: ['camelCase', 'PascalCase', 'UPPER_CASE'] | ||
}, | ||
{ | ||
selector: 'typeProperty', | ||
format: ['camelCase', 'PascalCase', 'UPPER_CASE'] | ||
} | ||
], | ||
'@typescript-eslint/no-unsafe-assignment': [ | ||
'off' | ||
], | ||
'import/named': 'error', | ||
'@typescript-eslint/type-annotation-spacing': 'error', | ||
'no-multiple-empty-lines': [ | ||
'error', | ||
{ max: 1 } | ||
], | ||
'@typescript-eslint/member-delimiter-style': [ | ||
'error', | ||
{ | ||
'multiline': { | ||
'delimiter': 'semi', | ||
'requireLast': true | ||
}, | ||
'singleline': { | ||
'delimiter': 'semi', | ||
'requireLast': false | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
'parser': '@typescript-eslint/parser', | ||
'parserOptions': { | ||
'ecmaVersion': 'latest', | ||
'sourceType': 'module', | ||
}, | ||
'plugins': [ | ||
'@typescript-eslint', | ||
'@stylistic/js', | ||
], | ||
'ignorePatterns': ['**/docs/*', '**/lib/*', '**/bin/*'], | ||
'rules': { | ||
'quotes': [ | ||
'error', | ||
'single' | ||
], | ||
'semi': [ | ||
'error', | ||
'always' | ||
], | ||
'no-console': [ | ||
'error' | ||
], | ||
'@stylistic/js/no-trailing-spaces': [ | ||
'error' | ||
], | ||
'@stylistic/js/indent': ['error', 4], | ||
} | ||
}; |
Oops, something went wrong.