-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lint-staged): only run eslint on js,jsx,ts,tsx files (#4)
- Loading branch information
1 parent
11776bd
commit 82c6f3d
Showing
1 changed file
with
100 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,102 @@ | ||
{ | ||
"package": { | ||
"dependencies": { | ||
"@crestron/ch5-crcomlib": "^1.2.0", | ||
"@crestron/ch5-webxpanel": "^1.2.5", | ||
"@testing-library/jest-dom": "^5.16.2", | ||
"@testing-library/react": "^12.1.4", | ||
"@testing-library/user-event": "^13.5.0", | ||
"@types/jest": "^27.4.1", | ||
"@types/node": "^16.11.26", | ||
"@types/react": "^17.0.40", | ||
"@types/react-dom": "^17.0.13", | ||
"@types/react-router-dom": "^5.3.3", | ||
"@types/styled-components": "^5.1.24", | ||
"eruda": "^2.4.1", | ||
"react-icons": "^4.3.1", | ||
"react-router-dom": "^6.2.2", | ||
"styled-components": "^5.3.3", | ||
"typescript": "^4.6.2" | ||
}, | ||
"scripts": { | ||
"clean:build": "rimraf build", | ||
"clean:dist": "rimraf dist", | ||
"clean:all": "yarn clean:build && yarn clean:dist", | ||
"copylib": "ncp $npm_package_crestron_crcomlib_bundle_path_umd public/$npm_package_crestron_crcomlib_bundle_name", | ||
"start": "yarn resolve:crcomlib && yarn copylib && react-scripts start", | ||
"build": "yarn clean:build && yarn resolve:crcomlib && yarn copylib && react-scripts build", | ||
"serve": "serve -s build", | ||
"build-and-serve": "yarn build && yarn serve", | ||
"build:archive": "yarn clean:dist && yarn ch5-cli archive -p $npm_package_name -P samplesource=$npm_package_name -d build -o dist", | ||
"build:deploy:touchscreen": "yarn ch5-cli deploy -p -H $npm_package_crestron_project_touchscreen_url -t $npm_package_crestron_project_touchscreen_type dist/$npm_package_name.ch5z", | ||
"build:deploy:web": "yarn ch5-cli deploy -p -H $npm_package_crestron_project_web_url -t $npm_package_crestron_project_web_type dist/$npm_package_name.ch5z", | ||
"build:onestep:touchscreen": "yarn build && yarn build:archive && yarn build:deploy:touchscreen", | ||
"build:onestep:web": "yarn build && yarn build:archive && yarn build:deploy:web", | ||
"resolve:crcomlib": "jq '.main = \"build_bundles/cjs/cr-com-lib.js\"' $npm_package_crestron_crcomlib_packageJson | sponge $npm_package_crestron_crcomlib_packageJson", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint --fix .", | ||
"commit": "git-cz", | ||
"prepare": "husky install" | ||
}, | ||
"eslintConfig": { | ||
"extends": ["react-app", "react-app/jest"] | ||
}, | ||
"crestron": { | ||
"project": { | ||
"touchscreen": { | ||
"url": "Enter IP/Hostname of Crestron Touchpanel here...", | ||
"type": "touchscreen" | ||
}, | ||
"web": { | ||
"url": "Enter IP/Hostname of Crestron Processor here...", | ||
"type": "web" | ||
} | ||
}, | ||
"crcomlib": { | ||
"root": "./node_modules/@crestron/ch5-crcomlib", | ||
"packageJson": "./node_modules/@crestron/ch5-crcomlib/package.json", | ||
"bundle": { | ||
"name": "cr-com-lib.js", | ||
"path": { | ||
"umd": "./node_modules/@crestron/ch5-crcomlib/build_bundles/umd/cr-com-lib.js", | ||
"cjs": "./node_modules/@crestron/ch5-crcomlib/build_bundles/cjs/cr-com-lib.js" | ||
} | ||
} | ||
} | ||
}, | ||
"devDependencies": { | ||
"@crestron/ch5-utilities-cli": "^0.1.52", | ||
"@types/ncp": "^2.0.5", | ||
"@types/node-sass": "^4.11.2", | ||
"@types/rimraf": "^3.0.2", | ||
"@typescript-eslint/eslint-plugin": "^5.14.0", | ||
"@typescript-eslint/parser": "^5.14.0", | ||
"cz-conventional-changelog": "3.3.0", | ||
"eslint": "^8.11.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-airbnb-typescript": "^16.1.2", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jsx-a11y": "^6.5.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.29.3", | ||
"eslint-plugin-react-hooks": "^4.3.0", | ||
"husky": "^7.0.0", | ||
"lint-staged": "^12.3.5", | ||
"ncp": "^2.0.0", | ||
"node-jq": "^2.1.0", | ||
"node-sass": "^7.0.1", | ||
"prettier": "^2.5.1", | ||
"rimraf": "^3.0.2", | ||
"sponge": "^0.1.0" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,ts,tsx,md,html,css,scss}": ["yarn lint:fix"] | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
} | ||
} | ||
"package": { | ||
"dependencies": { | ||
"@crestron/ch5-crcomlib": "^1.2.0", | ||
"@crestron/ch5-webxpanel": "^1.2.5", | ||
"@testing-library/jest-dom": "^5.16.2", | ||
"@testing-library/react": "^12.1.4", | ||
"@testing-library/user-event": "^13.5.0", | ||
"@types/jest": "^27.4.1", | ||
"@types/node": "^16.11.26", | ||
"@types/react": "^17.0.40", | ||
"@types/react-dom": "^17.0.13", | ||
"@types/react-router-dom": "^5.3.3", | ||
"@types/styled-components": "^5.1.24", | ||
"eruda": "^2.4.1", | ||
"react-icons": "^4.3.1", | ||
"react-router-dom": "^6.2.2", | ||
"styled-components": "^5.3.3", | ||
"typescript": "^4.6.2" | ||
}, | ||
"scripts": { | ||
"clean:build": "rimraf build", | ||
"clean:dist": "rimraf dist", | ||
"clean:all": "yarn clean:build && yarn clean:dist", | ||
"copylib": "ncp $npm_package_crestron_crcomlib_bundle_path_umd public/$npm_package_crestron_crcomlib_bundle_name", | ||
"start": "yarn resolve:crcomlib && yarn copylib && react-scripts start", | ||
"build": "yarn clean:build && yarn resolve:crcomlib && yarn copylib && react-scripts build", | ||
"serve": "serve -s build", | ||
"build-and-serve": "yarn build && yarn serve", | ||
"build:archive": "yarn clean:dist && yarn ch5-cli archive -p $npm_package_name -P samplesource=$npm_package_name -d build -o dist", | ||
"build:deploy:touchscreen": "yarn ch5-cli deploy -p -H $npm_package_crestron_project_touchscreen_url -t $npm_package_crestron_project_touchscreen_type dist/$npm_package_name.ch5z", | ||
"build:deploy:web": "yarn ch5-cli deploy -p -H $npm_package_crestron_project_web_url -t $npm_package_crestron_project_web_type dist/$npm_package_name.ch5z", | ||
"build:onestep:touchscreen": "yarn build && yarn build:archive && yarn build:deploy:touchscreen", | ||
"build:onestep:web": "yarn build && yarn build:archive && yarn build:deploy:web", | ||
"resolve:crcomlib": "jq '.main = \"build_bundles/cjs/cr-com-lib.js\"' $npm_package_crestron_crcomlib_packageJson | sponge $npm_package_crestron_crcomlib_packageJson", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint --fix .", | ||
"commit": "git-cz", | ||
"prepare": "husky install" | ||
}, | ||
"eslintConfig": { | ||
"extends": ["react-app", "react-app/jest"] | ||
}, | ||
"crestron": { | ||
"project": { | ||
"touchscreen": { | ||
"url": "Enter IP/Hostname of Crestron Touchpanel here...", | ||
"type": "touchscreen" | ||
}, | ||
"web": { | ||
"url": "Enter IP/Hostname of Crestron Processor here...", | ||
"type": "web" | ||
} | ||
}, | ||
"crcomlib": { | ||
"root": "./node_modules/@crestron/ch5-crcomlib", | ||
"packageJson": "./node_modules/@crestron/ch5-crcomlib/package.json", | ||
"bundle": { | ||
"name": "cr-com-lib.js", | ||
"path": { | ||
"umd": "./node_modules/@crestron/ch5-crcomlib/build_bundles/umd/cr-com-lib.js", | ||
"cjs": "./node_modules/@crestron/ch5-crcomlib/build_bundles/cjs/cr-com-lib.js" | ||
} | ||
} | ||
} | ||
}, | ||
"devDependencies": { | ||
"@crestron/ch5-utilities-cli": "^0.1.52", | ||
"@types/ncp": "^2.0.5", | ||
"@types/node-sass": "^4.11.2", | ||
"@types/rimraf": "^3.0.2", | ||
"@typescript-eslint/eslint-plugin": "^5.14.0", | ||
"@typescript-eslint/parser": "^5.14.0", | ||
"cz-conventional-changelog": "3.3.0", | ||
"eslint": "^8.11.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-airbnb-typescript": "^16.1.2", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jsx-a11y": "^6.5.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.29.3", | ||
"eslint-plugin-react-hooks": "^4.3.0", | ||
"husky": "^7.0.0", | ||
"lint-staged": "^12.3.5", | ||
"ncp": "^2.0.0", | ||
"node-jq": "^2.1.0", | ||
"node-sass": "^7.0.1", | ||
"prettier": "^2.5.1", | ||
"rimraf": "^3.0.2", | ||
"sponge": "^0.1.0" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,ts,tsx}": ["yarn lint:fix"] | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
} | ||
} | ||
} |