/ piacw.com / dev / final / node_modules / @vue / cli-plugin-eslint /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]generator/2 years ago - 0fb859dc fixed mobile overflwo options [كارل مبارك]
[DIR]migrator/2 years ago - 0fb859dc fixed mobile overflwo options [كارل مبارك]
[DIR]ui/2 years ago -  
[   ]LICENSE2 years ago1.1K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]README.md2 years ago2.3K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]eslintDeps.js2 years ago1.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]eslintOptions.js2 years ago2.0K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]index.js2 years ago2.8K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]lint.js2 years ago4.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
[IMG]logo.png2 years ago712 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2 years ago1.8K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]prompts.js2 years ago1.0K0fb859dc fixed mobile overflwo options [كارل مبارك]
README.md

@vue/cli-plugin-eslint

eslint plugin for vue-cli

Injected Commands

Configuration

ESLint can be configured via .eslintrc or the eslintConfig field in package.json. See the ESLint configuration docs for more detail.

::: tip The following option is under the section of vue.config.js. It is respected only when @vue/cli-plugin-eslint is installed. :::

Lint-on-save during development with eslint-loader is enabled by default. It can be disabled with the lintOnSave option in vue.config.js:

module.exports = {
  lintOnSave: false
}

When set to true, eslint-loader will emit lint errors as warnings. By default, warnings are only logged to the terminal and does not fail the compilation.

To make lint errors show up in the browser overlay, you can use lintOnSave: 'error'. This will force eslint-loader to always emit errors. this also means lint errors will now cause the compilation to fail.

Alternatively, you can configure the overlay to display both warnings and errors:

// vue.config.js
module.exports = {
  devServer: {
    overlay: {
      warnings: true,
      errors: true
    }
  }
}

When lintOnSave is a truthy value, eslint-loader will be applied in both development and production. If you want to disable eslint-loader during production build, you can use the following config:

// vue.config.js
module.exports = {
  lintOnSave: process.env.NODE_ENV !== 'production'
}

Installing in an Already Created Project

vue add eslint

Injected webpack-chain Rules

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80