Skip to content

Commit

Permalink
style: Add eslintrc file for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhartman committed Nov 23, 2022
1 parent 2fc26fb commit ddd71db
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
env: {
es2021: true,
node: true,
},
extends: [
'airbnb',
'eslint:recommended',
'plugin:react/recommended',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'react',
],
rules: {
'jsx-quotes': ['error', 'prefer-double'],
'import/no-unresolved': 'off',
'react/jsx-filename-extension': 'off',
'max-len': ['error', { code: 100, tabWidth: 2 }],
// 'operator-linebreak': 'off',
// 'implicit-arrow-linebreak': 'off',
},
};

0 comments on commit ddd71db

Please sign in to comment.