mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 02:17:15 +00:00
chore: add ls-lint (#7228)
This commit is contained in:
parent
479e3ffefb
commit
7845509d7b
8
.ls-lint.yml
Normal file
8
.ls-lint.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
ls:
|
||||||
|
packages/*/{src,bin}:
|
||||||
|
.dir: kebab-case
|
||||||
|
.js: kebab-case
|
||||||
|
|
||||||
|
ignore:
|
||||||
|
- packages/config/src/config/_app.js
|
||||||
|
- packages/config/src/config/_common.js
|
@ -18,6 +18,7 @@
|
|||||||
"clean:test": "rimraf test/fixtures/*/dist test/fixtures/*/.nuxt*/",
|
"clean:test": "rimraf test/fixtures/*/dist test/fixtures/*/.nuxt*/",
|
||||||
"dev": "node -r esm ./scripts/dev.js",
|
"dev": "node -r esm ./scripts/dev.js",
|
||||||
"postinstall": "lerna link && yarn dev",
|
"postinstall": "lerna link && yarn dev",
|
||||||
|
"ls-lint": "npx @ls-lint/ls-lint",
|
||||||
"lint": "eslint --ext .js,.mjs,.vue .",
|
"lint": "eslint --ext .js,.mjs,.vue .",
|
||||||
"lint:app": "eslint-multiplexer eslint --ignore-path packages/vue-app/template/.eslintignore 'test/fixtures/!(missing-plugin)/.nuxt!(-dev)/**' | eslint-multiplexer -b",
|
"lint:app": "eslint-multiplexer eslint --ignore-path packages/vue-app/template/.eslintignore 'test/fixtures/!(missing-plugin)/.nuxt!(-dev)/**' | eslint-multiplexer -b",
|
||||||
"nuxt": "node -r esm ./packages/cli/bin/nuxt-cli.js",
|
"nuxt": "node -r esm ./packages/cli/bin/nuxt-cli.js",
|
||||||
@ -26,11 +27,12 @@
|
|||||||
"test:dev": "jest test/dev --forceExit",
|
"test:dev": "jest test/dev --forceExit",
|
||||||
"test:e2e": "jest -i test/e2e --forceExit",
|
"test:e2e": "jest -i test/e2e --forceExit",
|
||||||
"test:fixtures": "jest test/fixtures --forceExit",
|
"test:fixtures": "jest test/fixtures --forceExit",
|
||||||
"test:lint": "yarn lint",
|
"test:lint": "yarn lint && yarn ls-lint",
|
||||||
"test:unit": "jest packages --forceExit",
|
"test:unit": "jest packages --forceExit",
|
||||||
"audit": "improved-yarn-audit --ignore-dev-deps --min-severity moderate -e 1488"
|
"audit": "improved-yarn-audit --ignore-dev-deps --min-severity moderate -e 1488"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@ls-lint/ls-lint": "^1.8.0",
|
||||||
"@babel/core": "^7.9.0",
|
"@babel/core": "^7.9.0",
|
||||||
"@babel/preset-env": "^7.9.0",
|
"@babel/preset-env": "^7.9.0",
|
||||||
"@nuxtjs/eslint-config": "^2.0.2",
|
"@nuxtjs/eslint-config": "^2.0.2",
|
||||||
|
@ -1873,6 +1873,11 @@
|
|||||||
npmlog "^4.1.2"
|
npmlog "^4.1.2"
|
||||||
write-file-atomic "^2.3.0"
|
write-file-atomic "^2.3.0"
|
||||||
|
|
||||||
|
"@ls-lint/ls-lint@^1.8.0":
|
||||||
|
version "1.8.0"
|
||||||
|
resolved "https://registry.npmjs.org/@ls-lint/ls-lint/-/ls-lint-1.8.0.tgz#508fe32d4dbdd90d61c8ea156c20af33c294a22e"
|
||||||
|
integrity sha512-XaItB+/qOMdCJbTuT/mT6yDlzUSClOtPx9S/dUBETUHxmcOlvdLOXoIiSvZBlpmux81qtz6pVvkmzWNK0SpojQ==
|
||||||
|
|
||||||
"@mrmlnc/readdir-enhanced@^2.2.1":
|
"@mrmlnc/readdir-enhanced@^2.2.1":
|
||||||
version "2.2.1"
|
version "2.2.1"
|
||||||
resolved "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
|
resolved "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
|
||||||
|
Loading…
Reference in New Issue
Block a user