Skip to content

Commit

Permalink
chore: fission eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Oct 27, 2023
1 parent e9c835c commit 48aeccc
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 159 deletions.
3 changes: 1 addition & 2 deletions examples/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@
"devDependencies": {
"@babel/core": "^7.23.2",
"@types/node": "^20.8.9",
"hd-scripts": "^9.0.6",
"typescript": "5.2.2",
"vite": "^4.5.0"
},
"eslintConfig": {
"extends": [
"./node_modules/hd-scripts/eslint/preact.js"
"@fission-codes"
],
"ignorePatterns": [
"dist"
Expand Down
23 changes: 3 additions & 20 deletions examples/demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "ES2022",
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"moduleDetection": "force",
"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["vite/client"],
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"outDir": "dist",
"noEmit": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"esModuleInterop": true,
// Advanced
"forceConsistentCasingInFileNames": true,
// Type Checking
"strict": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": false,
"noUnusedLocals": true,
"noUnusedParameters": false,
"skipLibCheck": true
"noEmit": true
},
"include": ["src", "test"],
"exclude": ["node_modules", "dist", "out"]
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"docs": "typedoc --out docs --plugin typedoc-plugin-missing-exports --plugin typedoc-plugin-zod"
},
"devDependencies": {
"@fission-codes/eslint-config": "^0.0.3",
"depcheck": "^1.4.7",
"hd-scripts": "^9.0.6",
"lint-staged": "^15.0.2",
"prettier": "3.0.3",
"simple-git-hooks": "^2.9.0",
Expand All @@ -38,10 +38,10 @@
"*.{js,ts,jsx,tsx,yml,json,css}": "prettier --write",
"*": "eslint --fix"
},
"prettier": "hd-scripts/prettier.config.js",
"prettier": "@fission-codes/eslint-config/prettier.config.js",
"eslintConfig": {
"extends": [
"./node_modules/hd-scripts/eslint/index.js"
"@fission-codes"
],
"ignorePatterns": [
"docs"
Expand Down
3 changes: 1 addition & 2 deletions packages/package1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"eslintConfig": {
"extends": [
"../../node_modules/hd-scripts/eslint/index.js"
"@fission-codes"
],
"env": {
"mocha": true
Expand All @@ -73,7 +73,6 @@
],
"ignores": [
"@types/*",
"hd-scripts",
"assert"
]
}
Expand Down
3 changes: 1 addition & 2 deletions packages/package1/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"emitDeclarationOnly": true,
"outDir": "dist"
},
"include": ["src", "test", "package.json"],
"include": ["src", "test"],
"exclude": ["node_modules", "dist", "out"],
"typedocOptions": {
"entryPoints": ["src/index.js", "src/module1.js"],
Expand Down
Loading

0 comments on commit 48aeccc

Please sign in to comment.