aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-08 21:38:27 +0300
committerGravatar Vitaly Takmazov2018-11-08 21:38:27 +0300
commit7aaa3f9a29c280f01c677c918932620be45cdbd7 (patch)
tree39947b2c889afd08f9c73ba54fab91159d2af258 /.eslintrc
parent3ea9770d0d43fbe45449ac4531ec4b0a374d98ea (diff)
Merge everything into single Spring Boot application
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc60
1 files changed, 60 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
new file mode 100644
index 00000000..e1b73925
--- /dev/null
+++ b/.eslintrc
@@ -0,0 +1,60 @@
+{
+ // Extend existing configuration
+ // from ESlint and eslint-plugin-react defaults.
+ "extends": [
+ "eslint:recommended"
+ //, "plugin:react/recommended"
+ ],
+ // Enable ES6 support. If you want to use custom Babel
+ // features, you will need to enable a custom parser
+ // as described in a section below.
+ "parserOptions": {
+ "sourceType": "module"
+ },
+ "env": {
+ "browser": true,
+ "node": true,
+ "es6": true
+ },
+ // Enable custom plugin known as eslint-plugin-react
+ "plugins": [
+ // "react"
+ "only-ascii"
+ ],
+ // http://eslint.org/docs/rules/
+ "rules": {
+ "no-console": "off",
+ "no-underscore-dangle": "warn",
+ "quotes": ["error", "single"],
+
+ "no-const-assign": "warn",
+ "no-this-before-super": "warn",
+ "no-unreachable": "warn",
+ "no-undef": "warn",
+ "constructor-super": "warn",
+ "valid-typeof": "warn",
+ "no-eq-null": "off",
+ "no-shadow-restricted-names": "warn",
+ "no-trailing-spaces": "warn",
+ "semi": "warn",
+ "keyword-spacing": "warn",
+ "block-spacing": "warn",
+ "arrow-spacing": "warn",
+ "semi-spacing": "warn",
+ "brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
+ "dot-location": ["warn", "property"],
+ //"indent": ["warn", 2],
+ "no-tabs": "warn",
+ "eol-last": "warn",
+ "comma-style": "warn",
+ "curly": "warn",
+ //"no-var": "warn",
+ "no-shadow": "off",
+ "no-cond-assign": "off",
+ "no-sparse-arrays": "off",
+ "no-unused-vars": "off",
+ "no-useless-escape": "off",
+
+ "only-ascii/only-ascii": ["warn", { "allowedChars": "✓" }] // "excludePaths": ["i18n.js"]
+ }
+}