This repository has been archived by the owner on Jul 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 🎨 Add ESLint, cleanup code, configure webpack
- Loading branch information
Showing
56 changed files
with
1,948 additions
and
1,564 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,43 @@ | ||
{ | ||
"parser": "typescript-eslint-parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"spread": true, | ||
"experimentalDecorators": true | ||
} | ||
}, | ||
"extends": "airbnb", | ||
"rules": { | ||
"react/jsx-filename-extension": "off", | ||
"no-undef": "off", | ||
"no-multi-str": "off", | ||
"import/extensions": "off", | ||
"import/no-unresolved": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"react/sort-comp": "off", | ||
"no-return-assign": "off", | ||
"no-mixed-operators": "off", | ||
"import/prefer-default-export": "off", | ||
"no-unused-expressions": "off", | ||
"prefer-destructuring": "off", | ||
"no-plusplus": "off", | ||
"react/no-unsecaped-entites": "off", | ||
"react/self-closing-comp": "off", | ||
"react/void-dom-elements-no-children": "off", | ||
"react/jsx-indent": "off", | ||
"react/jsx-indent-props": "off", | ||
"react/jsx-max-props-per-line": "off", | ||
"no-restricted-syntax": "off", | ||
"no-param-reassign": "off", | ||
"no-underscore-dangle": "off", | ||
"linebreak-style": "off", | ||
"no-restricted-globals": "off", | ||
"react/no-did-mount-set-state": "off", | ||
"no-loop-func": "off", | ||
"no-unused-vars": "off", | ||
"guard-for-in": "off", | ||
"no-await-in-loop": "off", | ||
"arrow-parens": "off" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ node_modules | |
*.log* | ||
build | ||
dist | ||
package-lock.json | ||
.vscode | ||
.vs | ||
.DS_Store |
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,3 +1,9 @@ | ||
.babelrc | ||
src | ||
yarn.lock | ||
yarn.lock | ||
.travis.yml | ||
README.md | ||
LICENSE | ||
tsconfig.json | ||
.gitignore | ||
.npmignore |
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,45 +1,40 @@ | ||
{ | ||
"name": "nersent-ui", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "Material design framework for React", | ||
"repository": "Nersent/nersent-ui", | ||
"main": "build/index", | ||
"types": "build/index.d.ts", | ||
"types": "build/build/index.d.ts", | ||
"scripts": { | ||
"watch": "webpack-cli --mode development --watch", | ||
"build-production": | ||
"cross-env NODE_ENV=production webpack-cli --mode production", | ||
"lint": "npm run prettier && npm run tslint-fix", | ||
"prettier": "prettier --write src/**/*.ts*", | ||
"tslint-fix": "tslint --config tslint.json src/**/*.ts* --fix", | ||
"tslint": "tslint --config tslint.json src/**/*.ts*", | ||
"test": "npm run build-production && npm run tslint" | ||
"build-production": "cross-env NODE_ENV=production webpack-cli --mode production", | ||
"lint": "eslint --ext .tsx --ext .ts --ext .js src/", | ||
"lint-fix": "prettier-eslint --write \"src/**/*.ts*\"", | ||
"test": "npm run build-production && npm run lint" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"author": "Nersent", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/react": "16.3.3", | ||
"@types/node": "9.6.2", | ||
"@types/react-dom": "16.0.4", | ||
"@types/node": "9.6.5", | ||
"@types/react": "16.3.10", | ||
"cross-env": "5.1.4", | ||
"dts-bundle": "0.7.3", | ||
"dts-bundle-webpack": "1.0.0", | ||
"prettier": "1.11.1", | ||
"rimraf": "2.6.2", | ||
"ts-loader": "4.0.1", | ||
"tslint": "5.9.1", | ||
"tslint-config-prettier": "1.10.0", | ||
"tslint-react": "3.5.1", | ||
"typescript": "2.7.2", | ||
"prettier": "1.12.0", | ||
"prettier-eslint": "8.8.1", | ||
"prettier-eslint-cli": "4.7.1", | ||
"eslint": "4.19.1", | ||
"eslint-config-airbnb": "16.1.0", | ||
"eslint-plugin-import": "2.11.0", | ||
"eslint-plugin-jsx-a11y": "6.0.3", | ||
"eslint-plugin-react": "7.7.0", | ||
"ts-loader": "4.2.0", | ||
"typescript": "2.8.1", | ||
"uglifyjs-webpack-plugin": "1.2.4", | ||
"url-loader": "1.0.1", | ||
"typescript-eslint-parser": "14.0.0", | ||
"webpack": "4.5.0", | ||
"webpack-cli": "2.0.14", | ||
"react": "16.3.0", | ||
"react-dom": "16.3.1", | ||
"styled-components": "3.2.4" | ||
"webpack-cli": "2.0.14" | ||
} | ||
} |
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
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
Oops, something went wrong.