0.0.13 • Published 4 years ago

eslint-config-face v0.0.13

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

vscode

install plugins eslint,vetur

  • v > 1.41.0
"eslint.alwaysShowStatus": true,
"eslint.quiet": true,
"eslint.format.enable": true,
"eslint.validate": ["javascript", "vue", "html"],
"editor.codeActionsOnSave": {
    "source.fixAll": true,
    "source.fixAll.eslint": true
}
  • old version
  "eslint.autoFixOnSave": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    {
      "language": "typescript",
      "autoFix": true
    },
    {
      "language": "html",
      "autoFix": true
    },
    {
      "language": "vue",
      "autoFix": true
    }
  ]

install

  • npm i install-peerdeps eslint-config-face -D
  • npx install-peerdeps eslint-config-face -D

node

package.json

.prettierrc.js and .eslintrc.js

  "eslintConfig": {
    "extends": [
      "face"
    ],
    "rules": {}
  },
  "prettier": {
    "semi": true,
    "tabWidth": 2,
    "printWidth": 120,
    "singleQuote": true,
    "bracketSpacing": false,
    "endOfLine": "lf",
    "trailingComma": "es5",
    "arrowParens": "always"
  },

npm

"fix": "eslint src/**/*.{vue,js} --fix"
"fix": "eslint src --ext .ts --fix"

vue

package.json

  "eslintConfig": {
    "extends": [
      "face/vue"
    ],
    "rules": {}
  },
  "prettier": {
    "semi": true,
    "tabWidth": 2,
    "printWidth": 120,
    "singleQuote": true,
    "bracketSpacing": false,
    "endOfLine": "lf",
    "trailingComma": "es5",
    "arrowParens": "always"
  },

typescript

package.json

  "eslintConfig": {
    "extends": [
      "face/typescript"
    ],
    "rules": {}
  },
  "prettier": {
    "semi": true,
    "tabWidth": 2,
    "printWidth": 120,
    "singleQuote": true,
    "bracketSpacing": false,
    "endOfLine": "lf",
    "trailingComma": "es5",
    "arrowParens": "always"
  },

reference

0.0.12

4 years ago

0.0.13

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

5 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago