Files
FastUI/.eslintrc.cjs
Samuel Colvin e06fddf29e Bootstrap (#5)
2023-11-24 10:28:20 +00:00

37 lines
982 B
JavaScript

module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'standard',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'prettier',
],
ignorePatterns: ['node_modules'],
parser: '@typescript-eslint/parser',
plugins: ['react', '@typescript-eslint', 'react-refresh', 'simple-import-sort'],
rules: {
'react-refresh/only-export-components': 'off', // how much effect does this have?
'@typescript-eslint/no-explicit-any': 'off',
'no-use-before-define': 'off',
'import/order': [
'error',
{
'newlines-between': 'always',
groups: ['builtin', 'external', 'internal', 'object', 'type', 'parent', 'index', 'sibling'],
pathGroups: [
{
pattern: '@/**',
group: 'internal',
},
{
pattern: './../**',
group: 'parent',
},
],
},
],
},
}