diff options
-rw-r--r-- | .eslintrc.js | 17 | ||||
-rw-r--r-- | .exrc | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..54e057e --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,17 @@ +module.exports = { + env: { + browser: true, + commonjs: true, + es2021: true, + }, + extends: "eslint:recommended", + parserOptions: { + ecmaVersion: "latest", + }, + rules: { + "no-constant-binary-expression": "error", + indent: [ "warn", "tab", { SwitchCase: 1 } ], + semi: [ "error", "never" ], + "no-unused-vars": [ "error", { "vars": "all", "args": "all", "varsIgnorePattern": "^[CS]_", "argsIgnorePattern": "^_" } ], + }, +} @@ -0,0 +1 @@ +autocmd BufRead *.js :set formatprg=prettier\ --parser\ babel\ --use-tabs\ --no-semi\ --print-width\ 120\ --single-quote |