This commit is contained in:
Taylor Otwell
2021-12-01 15:17:40 -06:00
commit 507d891821
38 changed files with 4699 additions and 0 deletions

43
.eslintrc.js Normal file
View 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 }],
},
}