Skip to content

Commit

Permalink
Update ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
shoonia committed Jul 21, 2024
1 parent a19815d commit 1d79aad
Show file tree
Hide file tree
Showing 8 changed files with 554 additions and 567 deletions.
80 changes: 0 additions & 80 deletions .eslintrc

This file was deleted.

69 changes: 69 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';

export default ts.config(
{
ignores: [
'dist',
],
},
js.configs.recommended,
...ts.configs.recommended,
{
plugins: {
'eslint-plugin-react': {
rules: {
'react/jsx-key': 'error',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
'react/no-unknown-property': [
'error',
{
'ignore': [
'spellcheck',
],
},
],
},
},
},
rules: {
'comma-dangle': [
'error',
'always-multiline',
],
'semi': 'error',
'indent': [
'error',
2,
{
'SwitchCase': 1,
},
],
'quotes': [
'error',
'single',
],
'space-before-function-paren': [
'error',
{
'anonymous': 'always',
'named': 'never',
'asyncArrow': 'always',
},
],
'no-else-return': 'error',
'no-trailing-spaces': 'error',
'no-use-before-define': 'error',
'no-multiple-empty-lines': [
'error',
{
'max': 1,
'maxBOF': 0,
'maxEOF': 0,
},
],
},
},
);
Loading

0 comments on commit 1d79aad

Please sign in to comment.