Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Commit

Permalink
Add linters fix #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridermansb committed Aug 22, 2020
1 parent fb892a2 commit dfc7bc9
Show file tree
Hide file tree
Showing 14 changed files with 1,980 additions and 407 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false

[*.yml]
indent_size = 2
3 changes: 3 additions & 0 deletions .eslintignore
@@ -0,0 +1,3 @@
node_modules/
dist/
.github/
40 changes: 40 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,40 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:react/recommended',
'plugin:compat/recommended',
'plugin:unicorn/recommended',
'plugin:react-perf/recommended',
'plugin:react-hooks/recommended',
],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: { jsx: true, modules: true },
},
env: {
es6: true,
browser: true,
jquery: true,
commonjs: true,
},
globals: {
__VERSION__: true,
__DEVELOPMENT__: true,
__PRODUCTION__: true,
},
plugins: ['prettier', 'react', 'import'],
rules: {
'prettier/prettier': 'error',
'unicorn/no-null': 0,
'unicorn/filename-case': 0,
},
settings: {
react: {
version: '16',
},
},
};
7 changes: 7 additions & 0 deletions .prettierrc.js
@@ -0,0 +1,7 @@
module.exports = {
printWidth: 80,
singleQuote: true,
trailingComma: 'es5',
tabWidth: 4,
semi: true,
};

0 comments on commit dfc7bc9

Please sign in to comment.