sass-site/.eslintrc.cjs
Jonny Gerig Meyer 77c4c3892d
Add eslint
2023-01-09 15:15:35 -05:00

33 lines
707 B
JavaScript

module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
warnOnUnsupportedTypeScriptVersion: false,
},
plugins: ['@typescript-eslint', 'simple-import-sort'],
settings: {
'import/resolver': {
typescript: true,
},
},
rules: {
'import/order': 0,
'simple-import-sort/imports': 1,
'no-console': 1,
'no-warning-comments': [1, { terms: ['todo', 'fixme', '@@@'] }],
},
};