File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 22 "root": true,
33 "parser": "@typescript-eslint/parser",
44 "plugins": [
5- "@typescript-eslint"
5+ "@typescript-eslint",
6+ "import"
67 ],
78 "extends": [
89 "eslint:recommended",
3536 "comma-spacing" : "error",
3637 "no-multi-spaces" : "error",
3738 "prefer-template" : "error",
39+ "import/extensions": [2, "ignorePackages"],
3840 "max-nested-callbacks" : ["error",{
3941 "max": 3
4042 }],
Original file line number Diff line number Diff line change 2222 "build:copyCleanPackageJSON" : " ts-node scripts/copyPackageJsonToSrc.ts" ,
2323 "build:injectPackageVersion" : " ts-node ./scripts/injectPackageVersionToDistFiles.ts" ,
2424 "build:updatePackageExports" : " ts-node scripts/updatePackageJsonExports.ts" ,
25- "lint" : " eslint src __TESTS__ --color --ext .ts" ,
25+ "lint" : " npm run lint:src && npm run lint:test" ,
26+ "lint:src" : " eslint src --color --ext .ts" ,
27+ "lint:test" : " eslint __TESTS__ __TESTS_BUNDLE_SIZE__ --rule 'import/extensions: [0, \" never\" ]' --color --ext .ts" ,
2628 "start" : " rollup -c rollup.dev.config.js -w" ,
2729 "bundlewatch" : " bundlewatch --config ./bundlewatch.config.js" ,
2830 "release-dry-run" : " npm run build && cp README.md LICENSE ./dist && cd ./dist && release-it --dry-run" ,
5254 "clipboard" : " 2.0.1" ,
5355 "cloudinary-core" : " ^2.11.4" ,
5456 "eslint" : " ^6.8.0" ,
57+ "eslint-plugin-import" : " ^2.24.2" ,
5558 "extend" : " ^3.0.1" ,
5659 "glob" : " ^7.1.2" ,
5760 "grunt" : " ^1.0.2" ,
112115 "default" : " ./index.js"
113116 }
114117 }
115- }
118+ }
You can’t perform that action at this time.
0 commit comments