Skip to content

Commit

Permalink
chore(monorepo): lint fixes, formatting and es2020 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Jul 20, 2021
1 parent 72a8d94 commit 4b9a853
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 16 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint/eslint-plugin"],
"plugins": ["@typescript-eslint/eslint-plugin", "react"],
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-handler-names": "off",
"import/export": "off",
"no-dupe-class-members": "off",
"no-empty-pattern": "off",
Expand All @@ -30,8 +33,7 @@
"no-unused-expressions": "off",
"no-use-before-define": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-unused-vars": "error",
"react/jsx-handler-names": "off"
"@typescript-eslint/no-unused-vars": "error"
}
}
]
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ lib
.cache
.DS_Store
devtoolsDist
packages/overmind-website/**/*

# Runtime data
pids
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ package.json
**/es
**/build
**/coverage
/node_modules
node_modules
*.md
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sudo: false
language: node_js
node_js: '10'
node_js: '14'
install:
- travis_wait npm ci
cache:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"commit": "git-cz",
"commitmsg": "cz-customizable-ghooks",
"fixdeps": "repo-cooker --fix-dependencies",
"format": "npm run lint -- --fix && prettier --write --with-node-modules \"**/*.md\" \"**/*.css\" \"**/*.json\"",
"format": "npm run lint -- --fix && prettier --write \"**/*.md\" \"**/*.json\"",
"install": "npm run link && npm run build",
"link": "repo-cooker --link",
"lint": "eslint \"**/*.js\" \"**/*.ts\"",
Expand Down Expand Up @@ -128,7 +128,7 @@
"git add"
],
"*.{md,css,json}": [
"prettier --write --with-node-modules",
"prettier --write",
"git add"
]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/betsy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "npm run build:lib & npm run build:es",
"build:lib": "tsc --outDir lib --module commonjs",
"build:es": "tsc --outDir es --module es2015",
"build:es": "tsc --outDir es --module ES2020 --target ES2020",
"clean": "rimraf es lib coverage",
"typecheck": "tsc --noEmit",
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion packages/overmind-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "npm run build:lib & npm run build:es",
"build:lib": "tsc --outDir lib --module commonjs",
"build:es": "tsc --outDir es --module es2015",
"build:es": "tsc --outDir es --module ES2020 --target ES2020",
"clean": "rimraf es lib coverage",
"typecheck": "tsc --noEmit",
"test:watch": "jest --watch --updateSnapshot --coverage false",
Expand Down
2 changes: 1 addition & 1 deletion packages/overmind-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "npm run build:lib & npm run build:es",
"build:lib": "tsc --outDir lib --module commonjs",
"build:es": "tsc --outDir es --module es2015",
"build:es": "tsc --outDir es --module ES2020 --target ES2020",
"clean": "rimraf es lib coverage",
"typecheck": "tsc --noEmit",
"test": "jest --runInBand",
Expand Down
2 changes: 1 addition & 1 deletion packages/overmind-statechart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "npm run build:lib & npm run build:es",
"build:lib": "tsc --outDir lib --module commonjs",
"build:es": "tsc --outDir es --module es2015",
"build:es": "tsc --outDir es --module ES2020 --target ES2020",
"clean": "rimraf es lib coverage",
"typecheck": "tsc --noEmit",
"test": "jest --runInBand",
Expand Down
2 changes: 1 addition & 1 deletion packages/overmind-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "npm run build:lib & npm run build:es",
"build:lib": "tsc --outDir lib --module commonjs",
"build:es": "tsc --outDir es --module es2015",
"build:es": "tsc --outDir es --module ES2020 --target ES2020",
"clean": "rimraf es lib coverage",
"typecheck": "tsc --noEmit",
"test": "jest --runInBand",
Expand Down
2 changes: 1 addition & 1 deletion packages/overmind-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "npm run build:lib & npm run build:es",
"build:lib": "tsc --outDir lib --module commonjs",
"build:es": "tsc --outDir es --module es2015",
"build:es": "tsc --outDir es --module ES2020 --target ES2020",
"clean": "rimraf es lib coverage",
"typecheck": "tsc --noEmit",
"test:watch": "jest --watch --updateSnapshot --coverage false",
Expand Down
2 changes: 1 addition & 1 deletion packages/overmind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "(npm run build:lib & npm run build:es) && npm run build:dist",
"build:lib": "tsc --outDir lib --module commonjs",
"build:es": "tsc --outDir es --module es2015",
"build:es": "tsc --outDir es --module ES2020 --target ES2020",
"build:dist": "webpack --config webpack.config.js",
"clean": "rimraf es lib coverage",
"typecheck": "tsc --noEmit",
Expand Down
2 changes: 1 addition & 1 deletion packages/proxy-state-tree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "(npm run build:lib & npm run build:es) && npm run build:dist",
"build:lib": "tsc --outDir lib --module commonjs",
"build:es": "tsc --outDir es --module es2015",
"build:es": "tsc --outDir es --module ES2020 --target ES2020",
"build:dist": "webpack --config webpack.config.js",
"clean": "rimraf es lib coverage",
"typecheck": "tsc --noEmit",
Expand Down

0 comments on commit 4b9a853

Please sign in to comment.