mirror of
https://github.com/danog/sass-site.git
synced 2024-11-27 04:24:50 +01:00
63 lines
1.3 KiB
JavaScript
63 lines
1.3 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
sourceType: 'module',
|
|
ecmaVersion: 2021,
|
|
tsconfigRootDir: __dirname,
|
|
warnOnUnsupportedTypeScriptVersion: false,
|
|
},
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true,
|
|
},
|
|
plugins: ['simple-import-sort', 'import', '@typescript-eslint'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:import/recommended',
|
|
'plugin:import/typescript',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'prettier',
|
|
],
|
|
settings: {
|
|
'import/resolver': {
|
|
typescript: {
|
|
project: ['tsconfig.json'],
|
|
},
|
|
node: {
|
|
extensions: ['.cjs'],
|
|
},
|
|
},
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['*.cjs'],
|
|
parserOptions: {
|
|
sourceType: 'script',
|
|
},
|
|
rules: {
|
|
'import/order': 1,
|
|
'simple-import-sort/imports': 0,
|
|
'@typescript-eslint/no-var-requires': 0,
|
|
},
|
|
},
|
|
{
|
|
files: ['*.ts'],
|
|
parserOptions: {
|
|
project: ['tsconfig.json'],
|
|
},
|
|
extends: [
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
],
|
|
},
|
|
],
|
|
rules: {
|
|
'import/order': 0,
|
|
'sort-imports': 0,
|
|
'simple-import-sort/imports': 1,
|
|
'no-console': 1,
|
|
'no-warning-comments': [1, { terms: ['todo', 'fixme', '@@@'] }],
|
|
},
|
|
};
|