0.0.11 • Published 2 years ago
@liutsing/eslint-config v0.0.11
@liutsing/eslint-config
eslint config used by
TypeScriptapp of MapleImage
Usage
npm install @liutsing/eslint-config -DTypeScript project
- Create a
.eslintrc.jsconfiguration file in the root of your project with the following content:
module.exports = {
extends: '@liutsing/eslint-config',
}- Run eslint on all the ts files etc in your project:
npx eslint . --ext .tsVue3 + TypeScript projects
- Create a
.eslintrc.cjsconfiguration file in the root of your project with the following content:
module.exports = {
extends: '@liutsing/eslint-config',
// ignorePatterns: [], or add .eslintignore file
}- Run eslint on all the SCSS files etc in your project:
npx eslint . --ext .tsAdd script for package.json
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}