mirror of
https://github.com/samuelcolvin/FastUI.git
synced 2023-12-01 22:22:11 +03:00
37 lines
982 B
JavaScript
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',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
}
|