sass-site/.eslintrc.js

55 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-01-09 21:15:35 +01:00
module.exports = {
root: true,
2023-01-24 23:51:07 +01:00
parser: '@typescript-eslint/parser',
parserOptions: {
2023-02-26 02:07:51 +01:00
sourceType: 'script',
2023-01-24 23:51:07 +01:00
ecmaVersion: 2021,
tsconfigRootDir: __dirname,
warnOnUnsupportedTypeScriptVersion: false,
},
2023-01-09 21:15:35 +01:00
env: {
browser: true,
es2021: true,
node: true,
},
2023-02-26 02:07:51 +01:00
plugins: ['import', 'simple-import-sort', '@typescript-eslint'],
2023-01-09 21:15:35 +01:00
extends: [
'eslint:recommended',
'plugin:import/recommended',
'plugin:import/typescript',
2023-01-24 23:51:07 +01:00
'plugin:@typescript-eslint/recommended',
2023-01-09 21:15:35 +01:00
'prettier',
],
settings: {
'import/resolver': {
2023-01-24 23:51:07 +01:00
typescript: {
project: ['tsconfig.json'],
},
2023-01-09 21:15:35 +01:00
},
},
2023-01-24 23:51:07 +01:00
overrides: [
{
files: ['*.ts'],
parserOptions: {
2023-02-26 02:07:51 +01:00
sourceType: 'module',
2023-01-24 23:51:07 +01:00
project: ['tsconfig.json'],
},
extends: [
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
2023-02-26 02:07:51 +01:00
rules: {
'import/order': 0,
'sort-imports': 0,
'simple-import-sort/imports': 1,
},
2023-01-24 23:51:07 +01:00
},
],
2023-01-09 21:15:35 +01:00
rules: {
2023-02-26 02:07:51 +01:00
'import/order': 1,
'simple-import-sort/imports': 0,
'@typescript-eslint/no-var-requires': 0,
2023-01-09 21:15:35 +01:00
'no-console': 1,
'no-warning-comments': [1, { terms: ['todo', 'fixme', '@@@'] }],
},
};