mirror of
https://github.com/kevin-DL/breeze-next-template.git
synced 2026-01-11 18:34:27 +00:00
first
This commit is contained in:
43
.eslintrc.js
Normal file
43
.eslintrc.js
Normal file
@@ -0,0 +1,43 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: 'babel-eslint',
|
||||
env: {
|
||||
node: true,
|
||||
browser: true,
|
||||
es6: true,
|
||||
commonjs: true,
|
||||
},
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:react/recommended',
|
||||
'plugin:prettier/recommended',
|
||||
],
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
ecmaVersion: 2020,
|
||||
},
|
||||
plugins: ['react', '@next/eslint-plugin-next', 'prettier'],
|
||||
rules: {
|
||||
'import/prefer-default-export': 0,
|
||||
'no-console': 'warn',
|
||||
'no-nested-ternary': 0,
|
||||
'no-underscore-dangle': 0,
|
||||
'no-unused-expressions': ['error', { allowTernary: true }],
|
||||
camelcase: 0,
|
||||
'react/self-closing-comp': 1,
|
||||
'react/jsx-filename-extension': [1, { extensions: ['.js', 'jsx'] }],
|
||||
'react/prop-types': 0,
|
||||
'react/destructuring-assignment': 0,
|
||||
'react/jsx-no-comment-textnodes': 0,
|
||||
'react/jsx-props-no-spreading': 0,
|
||||
'react/no-array-index-key': 0,
|
||||
'react/no-unescaped-entities': 0,
|
||||
'react/require-default-props': 0,
|
||||
'react/react-in-jsx-scope': 0,
|
||||
'linebreak-style': ['error', 'unix'],
|
||||
semi: ['error', 'never'],
|
||||
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user