forked from liferay/clay
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes liferay#1471 - Add prettier at root of project
- Loading branch information
1 parent
5d818bd
commit ae6533b
Showing
3 changed files
with
77 additions
and
64 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
bower_components | ||
build | ||
coverage | ||
lib | ||
node_modules | ||
package-lock.json | ||
yarn.lock |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"bracketSpacing": false, | ||
"singleQuote": true, | ||
"tabWidth": 4, | ||
"useTabs": true | ||
} |
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,66 +1,66 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"build": "lerna run build", | ||
"compile": "lerna run compile", | ||
"checkFormat": "npm run prettier -- --list-different", | ||
"coveralls": "node node_modules/coveralls/bin/coveralls.js < coverage/lcov.info", | ||
"format": "npm run prettier -- --write", | ||
"jest": "cross-env NODE_ENV=test jest", | ||
"lerna": "lerna bootstrap -- --no-optional --no-package-lock", | ||
"link": "lerna run link", | ||
"lint": "eslint packages/clay-*/src/*.js packages/clay-*/src/**/*.js 'examples/*/src/**/*.js' && npm run mcritic", | ||
"pa11y": "pa11y-ci ./packages/clay-*/demos/a11y.html", | ||
"prettier": "prettier-eslint packages/clay-*/src/*.js packages/clay-*/src/**/*.js 'examples/*/src/**/*.js'", | ||
"start": "http-server . -p 4000", | ||
"test": "npm run build && npm run jest && npm run pa11y", | ||
"site": "cd clayui.com && npm run build && npm run serve" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-react": "^7.0.0", | ||
"coveralls": "^3.0.0", | ||
"cross-env": "^5.1.3", | ||
"eslint": "^4.10.0", | ||
"eslint-config-liferay": "^2.0.8", | ||
"eslint-plugin-no-for-of-loops": "1.0.0", | ||
"eslint-plugin-react": "^7.4.0", | ||
"http-server": "^0.9.0", | ||
"husky": "^0.14.2", | ||
"jest": "^20.0.4", | ||
"jest-fetch-mock": "^2.0.1", | ||
"lerna": "^3.4.0", | ||
"pa11y-ci": "^2.1.1", | ||
"prettier-eslint-cli": "^4.7.0" | ||
}, | ||
"jest": { | ||
"setupFiles": [ | ||
"./scripts/setupTests.js" | ||
], | ||
"collectCoverage": true, | ||
"coverageReporters": [ | ||
"json", | ||
"lcov" | ||
], | ||
"resolver": "./scripts/jest-clay-lerna-resolver", | ||
"testPathIgnorePatterns": [ | ||
"browserslist-config-clay", | ||
"fixtures", | ||
"<rootDir>/examples" | ||
], | ||
"transformIgnorePatterns": [ | ||
"<rootDir>.*(node_modules)(?!.*clay.*).*$" | ||
] | ||
}, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"nohoist": [ | ||
"**/clay-charts-shared" | ||
] | ||
}, | ||
"resolutions": { | ||
"js-beautify": "1.7.5", | ||
"event-stream": "3.3.4" | ||
} | ||
"private": true, | ||
"scripts": { | ||
"build": "lerna run build", | ||
"compile": "lerna run compile", | ||
"checkFormat": "npm run prettier -- --list-different", | ||
"coveralls": "node node_modules/coveralls/bin/coveralls.js < coverage/lcov.info", | ||
"format": "npm run prettier -- --write", | ||
"jest": "cross-env NODE_ENV=test jest", | ||
"lerna": "lerna bootstrap -- --no-optional --no-package-lock", | ||
"link": "lerna run link", | ||
"lint": "eslint packages/**/*.js examples/**/*.js scripts/**/*.js", | ||
"pa11y": "pa11y-ci ./packages/clay-*/demos/a11y.html", | ||
"prettier": "prettier-eslint packages/**/*.js examples/**/*.js scripts/**/*.js", | ||
"start": "http-server . -p 4000", | ||
"test": "npm run build && npm run jest && npm run pa11y", | ||
"site": "cd clayui.com && npm run build && npm run serve" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-react": "^7.0.0", | ||
"coveralls": "^3.0.0", | ||
"cross-env": "^5.1.3", | ||
"eslint": "^4.10.0", | ||
"eslint-config-liferay": "^2.0.8", | ||
"eslint-plugin-no-for-of-loops": "1.0.0", | ||
"eslint-plugin-react": "^7.4.0", | ||
"http-server": "^0.9.0", | ||
"husky": "^0.14.2", | ||
"jest": "^20.0.4", | ||
"jest-fetch-mock": "^2.0.1", | ||
"lerna": "^3.4.0", | ||
"pa11y-ci": "^2.1.1", | ||
"prettier-eslint-cli": "^4.7.0" | ||
}, | ||
"jest": { | ||
"setupFiles": [ | ||
"./scripts/setupTests.js" | ||
], | ||
"collectCoverage": true, | ||
"coverageReporters": [ | ||
"json", | ||
"lcov" | ||
], | ||
"resolver": "./scripts/jest-clay-lerna-resolver", | ||
"testPathIgnorePatterns": [ | ||
"browserslist-config-clay", | ||
"fixtures", | ||
"<rootDir>/examples" | ||
], | ||
"transformIgnorePatterns": [ | ||
"<rootDir>.*(node_modules)(?!.*clay.*).*$" | ||
] | ||
}, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"nohoist": [ | ||
"**/clay-charts-shared" | ||
] | ||
}, | ||
"resolutions": { | ||
"js-beautify": "1.7.5", | ||
"event-stream": "3.3.4" | ||
} | ||
} |