mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 04:33:11 +03:00
Добавил eslint, prettier
This commit is contained in:
parent
21e2faced3
commit
bfccc5aac2
4 changed files with 1447 additions and 0 deletions
29
.eslintrc.js
Normal file
29
.eslintrc.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
es6: true
|
||||
},
|
||||
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
|
||||
parserOptions: {
|
||||
'sourceType': 'commonjs',
|
||||
"ecmaVersion": 'latest'
|
||||
},
|
||||
rules: {
|
||||
indent: 'off',
|
||||
semi: ['error', 'always'],
|
||||
'arrow-body-style': ["error", "as-needed"],
|
||||
"prettier/prettier": [
|
||||
"error", {
|
||||
"singleQuote": true,
|
||||
"parser": "flow"
|
||||
}
|
||||
],
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
'files': ['*/*.js'],
|
||||
},
|
||||
],
|
||||
'ignorePatterns': ['.eslintrc.js'],
|
||||
};
|
Loading…
Add table
Reference in a new issue