diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..e461b38 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,24 @@ +module.exports = { + env: { + browser: true, + es6: true, + node: true, + jest: true, + }, + parser: 'babel-eslint', + extends: ['eslint:recommended', 'plugin:react/recommended'], + globals: { + Atomics: 'readonly', + SharedArrayBuffer: 'readonly', + }, + rules: { + 'no-undef': ['error'], + eqeqeq: ['warn', 'smart'], + 'no-unused-vars': 'warn', + 'no-prototype-builtins': 'off', + 'id-length': [ + 'warn', + { exceptions: ['i', 'j', 't', 'Q', 'A', 'C', 'q', 'a', 'b'] }, + ], + }, +} diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..d0c6251 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,7 @@ +module.exports = { + trailingComma: 'es5', + tabWidth: 2, + semi: false, + singleQuote: true, + arrowParens: 'always', +}