File tree Expand file tree Collapse file tree 10 files changed +16
-20
lines changed
components/languages/toml Expand file tree Collapse file tree 10 files changed +16
-20
lines changed Original file line number Diff line number Diff line change 1- // eslint-disable-next-line node/no-unsupported-features/es-syntax -- build
21export const language = {
32 tokenPostfix : ".toml" ,
43 brackets : [
Original file line number Diff line number Diff line change 1- /* eslint node /no-unsupported-features/es-syntax: off -- not node */
1+ // eslint-disable-next-line n /no-missing-import -- no build
22import { Linter } from "eslint/lib/linter" ;
3- // eslint-disable-next-line node /no-missing-import -- no build
3+ // eslint-disable-next-line n /no-missing-import -- no build
44import plugin from "../../../../" ;
55
66const coreRules = Object . fromEntries ( new Linter ( ) . getRules ( ) ) ;
Original file line number Diff line number Diff line change 1- /* eslint node /no-unsupported-features/es-syntax: off -- not node */
2- import pako from "../../../../node_modules/ pako" ;
1+ // eslint-disable-next-line n /no-extraneous-import -- Demo
2+ import pako from "pako" ;
33
44/**
55 * Deserialize a given serialized string then update this object.
Original file line number Diff line number Diff line change 1- /* eslint node/no-unsupported-features/es-syntax: off -- not node */
2- export * from "./deserialize" ;
3- export * from "./serialize" ;
1+ export * from "./deserialize.js" ;
2+ export * from "./serialize.js" ;
Original file line number Diff line number Diff line change 1- /* eslint node /no-unsupported-features/es-syntax: off -- not node */
2- import pako from "../../../../node_modules/ pako" ;
1+ // eslint-disable-next-line n /no-extraneous-import -- Demo
2+ import pako from "pako" ;
33
44/**
55 * Get only enabled rules to make the serialized data smaller.
Original file line number Diff line number Diff line change 11const path = require ( "path" ) ;
2- // eslint-disable-next-line node /no-missing-require -- no build
2+ // eslint-disable-next-line n /no-missing-require -- no build
33const { rules } = require ( "../../lib/utils/rules" ) ;
4- // eslint-disable-next-line node /no-missing-require -- no build
4+ // eslint-disable-next-line n /no-missing-require -- no build
55const schema = require ( "../../lib/utils/schema" ) ;
66// Generate a schema store cache and include it in the bundle.
77schema . loadJson ( "https://www.schemastore.org/api/json/catalog.json" , { } ) ;
Original file line number Diff line number Diff line change 1- /* eslint node/no-unsupported-features/es-syntax: off -- not node */
21export default ( ) =>
32 // {
43 // Vue, // the version of Vue being used in the VuePress app
Original file line number Diff line number Diff line change 11// eslint-disable-next-line eslint-comments/disable-enable-pair -- DEMO
2- /* eslint-disable node/no-unsupported-features/es-syntax -- DEMO */
3- import * as w from "../../../../node_modules/eslint-visitor-keys/lib/index" ;
2+ import * as w from "../../../../node_modules/eslint-visitor-keys/lib/index.js" ;
43
54const all = w . default || w ;
65export const { KEYS , getKeys, unionWith } = all ;
Original file line number Diff line number Diff line change 6464 "@actions/core" : " ^1.2.6" ,
6565 "@changesets/changelog-github" : " ^0.4.6" ,
6666 "@changesets/cli" : " ^2.24.2" ,
67- "@ota-meshi/eslint-plugin" : " ^0.13 .0" ,
67+ "@ota-meshi/eslint-plugin" : " ^0.15 .0" ,
6868 "@types/debug" : " ^4.1.5" ,
6969 "@types/eslint" : " ^8.0.0" ,
7070 "@types/eslint-scope" : " ^3.7.0" ,
8585 "eslint-plugin-json-schema-validator" : " ^4.0.0" ,
8686 "eslint-plugin-jsonc" : " ^2.0.0" ,
8787 "eslint-plugin-markdown" : " ^3.0.0" ,
88- "eslint-plugin-node " : " ^11.1 .0" ,
88+ "eslint-plugin-n " : " ^15.0 .0" ,
8989 "eslint-plugin-node-dependencies" : " ^0.11.0" ,
9090 "eslint-plugin-prettier" : " ^5.0.0" ,
9191 "eslint-plugin-regexp" : " ^1.0.0" ,
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ module.exports = {
99 "yml/require-string-key" : "off" ,
1010 "yml/no-empty-key" : "off" ,
1111 "no-sparse-arrays" : "off" ,
12- "node /no-unsupported-features/es-syntax" : "off" ,
12+ "n /no-unsupported-features/es-syntax" : "off" ,
1313 "no-implicit-coercion" : "off" ,
14- "node /no-exports-assign" : "off" ,
15- "node /exports-style" : "off" ,
14+ "n /no-exports-assign" : "off" ,
15+ "n /exports-style" : "off" ,
1616 "no-void" : "off" ,
1717 eqeqeq : "off" ,
1818 "prefer-template" : "off" ,
You can’t perform that action at this time.
0 commit comments