mirror of
https://github.com/kevin-DL/breeze-next-template.git
synced 2026-01-11 02:14:31 +00:00
44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
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', { "endOfLine": "off" }, { usePrettierrc: true }],
|
|
},
|
|
}
|