We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
網頁
npm install --save-dev eslint @nuxt/eslint-config
Add .eslintrc.cjs to the root folder of your Nuxt app.
// .eslintrc.cjs module.exports = { root: true, extends: ['@nuxt/eslint-config'], }
// settings.json "scripts": { ... "lint": "eslint .", "lint:fix": "eslint . --fix", ... },
{ "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" } }
// .eslintrc.cjs module.exports = { root: true, env: { node: true, }, extends: [ '@nuxt/eslint-config', '@vue/airbnb', ], parserOptions: { parser: '@babel/eslint-parser', }, rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'vuejs-accessibility/label-has-for': 'off', 'vuejs-accessibility/form-control-has-label': 'off', }, };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
網頁
Install Dependencies
Configuration
Add .eslintrc.cjs to the root folder of your Nuxt app.
package.json
Install the VS Code ESLint extension.
遵守 airbnb 的 esLint 規範
The text was updated successfully, but these errors were encountered: