move eslint config out of package.json and add prettier
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Jason Miller · committed by Jason Miller · parent 5a17bef · Browse files · 2 files·+60 added−38 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+60 added−38 removed
- other:+60 added−38 removed
Provenance
- Commit
bbba04a- Tree
fbf4340- Author
Jason Miller <jason@developit.ca>- Committer
Jason Miller <jason@developit.ca>- Parent
5a17bef
2 files changed+60 added−38 removed
added:.eslintrc+52 added
1+{2+ "ignorePatterns": [3+ "node_modules",4+ "dist",5+ "index.d.ts"6+ ],7+ "extends": [8+ "plugin:@typescript-eslint/eslint-recommended",9+ "plugin:@typescript-eslint/recommended",10+ "developit"11+ ],12+ "parser": "@typescript-eslint/parser",13+ "parserOptions": {14+ "sourceType": "module"15+ },16+ "env": {17+ "browser": true,18+ "mocha": true,19+ "jest": false,20+ "es6": true21+ },22+ "globals": {23+ "expect": true24+ },25+ "rules": {26+ "semi": [27+ 2,28+ "always"29+ ],30+ "brace-style": [31+ 2,32+ "1tbs"33+ ],34+ "quotes": [35+ 2,36+ "single"37+ ],38+ "lines-around-comment": [39+ 2,40+ {41+ "allowBlockStart": true,42+ "allowObjectStart": true43+ }44+ ],45+ "jest/valid-expect": 0,46+ "@typescript-eslint/no-explicit-any": 0,47+ "@typescript-eslint/explicit-function-return-type": 0,48+ "@typescript-eslint/explicit-module-boundary-types": 0,49+ "@typescript-eslint/no-empty-function": 0,50+ "@typescript-eslint/no-non-null-assertion": 051+ }52+}modified:package.json+8 added-38 removed
52 unmodified lines5354555657585960616263646557585960676869707172737475767778798081828384858687888990919261626364659899666768691027071727374757677787980813 unmodified lines52 unmodified lines "spec": [ "test/*_test.ts" ] }, "eslintConfig": { "extends": [ "developit", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended" ], "parser": "@typescript-eslint/parser", "parserOptions": { "sourceType": "module" "prettier": { "singleQuote": true, "trailingComma": "none" }, "env": { "browser": true, "mocha": true, "jest": false, "es6": true }, "globals": { "expect": true }, "rules": { "semi": [ 2, "always" ], "jest/valid-expect": 0, "@typescript-eslint/no-explicit-any": 0, "@typescript-eslint/explicit-function-return-type": 0, "@typescript-eslint/explicit-module-boundary-types": 0, "@typescript-eslint/no-empty-function": 0, "@typescript-eslint/no-non-null-assertion": 0 } }, "eslintIgnore": [ "dist", "index.d.ts" ], "devDependencies": { "@types/chai": "^4.2.11", "@types/mocha": "^7.0.2", "@types/sinon": "^9.0.4", "@types/sinon-chai": "^3.2.4", "@typescript-eslint/eslint-plugin": "^3.0.1", "@typescript-eslint/parser": "^3.0.1", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", "chai": "^4.2.0", "documentation": "^14.0.2", "eslint": "^7.1.0", "eslint": "^7.32.0", "eslint-config-developit": "^1.2.0", "eslint-plugin-compat": "^4.1.4", "esm": "^3.2.25", "microbundle": "^0.12.3", "mocha": "^8.0.1", "npm-run-all": "^4.1.5", "prettier": "^2.8.8", "rimraf": "^3.0.2", "sinon": "^9.0.2", "sinon-chai": "^3.5.0", "ts-node": "^10.9.1",3 unmodified lines