Skip to content

Commit

Permalink
Merge pull request #47 from ice-lab/fix-eslint-scripts
Browse files Browse the repository at this point in the history
fix: eslint scripts
  • Loading branch information
imsobear authored Nov 25, 2020
2 parents 4341b05 + 5d7b1a7 commit 8acf0f7
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ coverage/
build
.tmp/
npmrc
.history
2 changes: 1 addition & 1 deletion packages/template-rax-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@icedesign/template-rax-api",
"version": "0.2.0",
"version": "0.2.1",
"description": "Rax API 模板",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
4 changes: 2 additions & 2 deletions packages/template-rax-api/template/component/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"scripts": {
"start": "build-scripts start",
"build": "build-scripts build",
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./",
"lint-fix": "eslint --fix ./src/**/*.*",
"eslint": "eslint --ext .js,.jsx,.ts,.tsx ./",
"eslint:fix": "npm run eslint -- --fix",
"prepublishOnly": "npm run build"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/template-rax-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@icedesign/template-rax-js",
"version": "0.2.1",
"version": "0.2.2",
"description": "Rax 物料模板(JS)",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
4 changes: 2 additions & 2 deletions packages/template-rax-js/template/component/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"start": "build-scripts start",
"build": "build-scripts build",
"eslint": "eslint --ext .js,.jsx,.ts,.tsx ./",
"eslint-fix": "npm run eslint -- --fix",
"stylelint": "stylelint ./**/*.css",
"eslint:fix": "npm run eslint -- --fix",
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
"lint": "npm run eslint && npm run stylelint",
"prepublishOnly": "npm run build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/template-rax-miniapp-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@icedesign/template-rax-miniapp-plugin",
"version": "0.2.1",
"version": "0.2.2",
"description": "Rax 小程序插件模板",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"start": "build-scripts start",
"build": "build-scripts build",
"eslint": "eslint --ext .js,.jsx,.ts,.tsx ./",
"eslint-fix": "npm run eslint -- --fix",
"stylelint": "stylelint ./**/*.css",
"eslint:fix": "npm run eslint -- --fix",
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
"lint": "npm run eslint && npm run stylelint",
"prepublishOnly": "npm run build"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/template-rax/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@icedesign/template-rax",
"version": "0.4.2",
"version": "0.4.3",
"description": "Rax 物料模板",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
4 changes: 2 additions & 2 deletions packages/template-rax/template/component/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"start": "build-scripts start",
"build": "build-scripts build",
"eslint": "eslint --ext .js,.jsx,.ts,.tsx ./",
"eslint-fix": "npm run eslint -- --fix",
"stylelint": "stylelint ./**/*.css",
"eslint:fix": "npm run eslint -- --fix",
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
"lint": "npm run eslint && npm run stylelint",
"prepublishOnly": "npm run build"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/template-rax/template/scaffold/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"start": "rax-app start",
"build": "rax-app build",
"eslint": "eslint --ext .js,.jsx,.ts,.tsx ./",
"stylelint": "stylelint ./**/*.css",
"eslint:fix": "npm run eslint -- --fix",
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
"lint": "npm run eslint && npm run stylelint",
"screenshot": "screenshot -l -u /build/web/index.html -s root",
"prepublishOnly": "npm run build && npm run screenshot"
Expand All @@ -37,7 +38,6 @@
"rax-app": "^3.0.0",
"@iceworks/spec": "^1.0.0",
"@types/rax": "^1.0.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.8.0",
"stylelint": "^13.7.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/template-react-deep/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alifd/deep-template",
"version": "1.3.1",
"version": "1.3.2",
"description": "deep 模板",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"start": "build-scripts start",
"build": "build-scripts build",
"prepublishOnly": "npm run build",
"eslint": "eslint --ext .js,.jsx ./",
"stylelint": "stylelint ./**/*.scss",
"eslint": "eslint --cache --ext .js,.jsx ./",
"eslint:fix": "npm run eslint -- --fix",
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
"lint": "npm run eslint && npm run stylelint"
},
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/template-react-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@icedesign/ice-react-ts-material-template",
"version": "0.6.2",
"version": "0.6.3",
"description": "自定义物料源的初始模板",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
"build": "build-scripts build",
"test": "build-scripts test",
"prepublishOnly": "npm run build",
"eslint": "eslint --ext .ts,.tsx ./",
"stylelint": "stylelint ./**/*.scss",
"eslint": "eslint --cache --ext .js,.jsx ./",
"eslint:fix": "npm run eslint -- --fix",
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
"lint": "npm run eslint && npm run stylelint"
},
"keywords": [
Expand Down
5 changes: 3 additions & 2 deletions packages/template-react-ts/template/scaffold/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
"build": "icejs build",
"screenshot": "../../node_modules/.bin/screenshot -l",
"prepublishOnly": "npm run build && npm run screenshot",
"lint": "npm run eslint && npm run stylelint",
"eslint": "eslint --cache --ext .js,.jsx ./",
"stylelint": "stylelint ./**/*.scss"
"eslint:fix": "npm run eslint -- --fix",
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
"lint": "npm run eslint && npm run stylelint"
},
"dependencies": {
"@alifd/next": "^1.19.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/template-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@icedesign/ice-react-material-template",
"version": "0.6.3",
"version": "0.6.4",
"description": "自定义物料源的初始模板",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
4 changes: 2 additions & 2 deletions packages/template-react/template/component/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"test": "build-scripts test",
"prepublishOnly": "npm run build",
"eslint": "eslint --cache --ext .js,.jsx ./",
"eslint-fix": "npm run eslint -- --fix",
"stylelint": "stylelint ./**/*.scss",
"eslint:fix": "npm run eslint -- --fix",
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
"lint": "npm run eslint && npm run stylelint"
},
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion packages/template-react/template/scaffold/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"prepublishOnly": "npm run build && npm run screenshot",
"lint": "npm run eslint && npm run stylelint",
"eslint": "eslint --cache --ext .js,.jsx ./",
"stylelint": "stylelint ./**/*.scss"
"eslint:fix": "npm run eslint -- --fix",
"stylelint": "stylelint \"**/*.{css,scss,less}\""
},
"dependencies": {
"@alifd/next": "^1.19.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/template-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@icedesign/ice-vue-material-template",
"version": "0.3.2",
"version": "0.3.3",
"description": "自定义物料源的初始模板",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 1 addition & 1 deletion packages/template-vue/template/block/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"start": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"screenshot": "screenshot -l mountNode",
"screenshot": "screenshot -l -s mountNode",
"prepublishOnly": "npm run build && npm run screenshot"
},
"dependencies": {
Expand Down

0 comments on commit 8acf0f7

Please sign in to comment.