-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description - ✨Complete rewrite - `/` - `/base` entry point
- Loading branch information
Showing
18 changed files
with
2,675 additions
and
204 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,34 @@ | ||
# Javascript Node CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
# Specify the version you desire here | ||
- image: circleci/node:7.10 | ||
|
||
working_directory: ~/repo | ||
|
||
steps: | ||
- checkout | ||
|
||
# Download and cache de¯pendencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
# Install dependencies | ||
- run: yarn | ||
|
||
# Save cache | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
|
||
# run circleci tests script | ||
- run: yarn test |
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,7 @@ | ||
{ | ||
"extends": "./index.js" | ||
"extends": "./index.js", | ||
"rules": { | ||
"comma-dangle": 0, | ||
"prefer-destructuring": 0 | ||
} | ||
} |
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,4 +1,12 @@ | ||
.DS_Store | ||
coverage/ | ||
# node | ||
node_modules/ | ||
npm-debug.log | ||
|
||
# testing | ||
coverage/ | ||
|
||
# local files | ||
.DS_Store | ||
|
||
# editors | ||
.vscode |
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,12 +1,16 @@ | ||
language: node_js | ||
node_js: | ||
- "10" | ||
- "9" | ||
- "8" | ||
- "7" | ||
- "6" | ||
- "5" | ||
- "4" | ||
before_install: | ||
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g [email protected] ;; 2.*) npm install -g npm@2 ;; esac ; fi' | ||
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi' | ||
- 'nvm install-latest-npm' | ||
install: | ||
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;' | ||
script: | ||
- 'npm run travis' | ||
sudo: false | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
extends: [ | ||
'eslint-config-airbnb-base', | ||
'./rules/base', | ||
].map(require.resolve), | ||
rules: {} | ||
}; |
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,18 +1,9 @@ | ||
module.exports = { | ||
extends: ['airbnb-base'].concat([ | ||
'./rules/plural', | ||
'./rules/react/react', | ||
'./rules/react/react-native', | ||
] | ||
.map(require.resolve)), | ||
parserOptions: { | ||
ecmaVersion: 2017, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
experimentalObjectRestSpread: true, | ||
}, | ||
}, | ||
rules: { | ||
strict: 'error', | ||
}, | ||
extends: [ | ||
'eslint-config-airbnb', | ||
'./rules/base', | ||
'./rules/react', | ||
'./rules/react-a11y', | ||
].map(require.resolve), | ||
rules: {} | ||
}; |
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,91 +1,79 @@ | ||
{ | ||
"name": "eslint-config-plural", | ||
"version": "0.1.0", | ||
"description": "ESLint shareable config for the Plural JavaScript code art.", | ||
"version": "0.2.0", | ||
"description": "🎨 How plural paints its code.", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/pluralcom/eslint-config-plural.git" | ||
}, | ||
"author": { | ||
"name": "Plural", | ||
"email": "[email protected]", | ||
"url": "https://plural.com" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Ahmed Tarek", | ||
"email": "[email protected]", | ||
"url": "https://github.com/A-Tokyo" | ||
} | ||
], | ||
"scripts": { | ||
"prelint": "editorconfig-tools check * rules/* test/*", | ||
"lint": "eslint .", | ||
"pretests-only": "node ./test/requires", | ||
"tests-only": "babel-tape-runner ./test/test-*.js", | ||
"prepublish": "(not-in-publish || npm test) && safe-publish-latest", | ||
"pretest": "npm run --silent lint", | ||
"test": "npm run --silent tests-only", | ||
"travis": "npm run --silent test" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"rules/" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/pluralcom/eslint-config-plural" | ||
}, | ||
"keywords": [ | ||
"plural", | ||
"react", | ||
"react-native", | ||
"code", | ||
"quality", | ||
"style", | ||
"lint", | ||
"linter", | ||
"jscs", | ||
"jshint", | ||
"jslint", | ||
"eslint", | ||
"validate", | ||
"code style", | ||
"strict", | ||
"check", | ||
"checker", | ||
"verify", | ||
"enforce", | ||
"hint" | ||
"eslintconfig", | ||
"config", | ||
"airbnb", | ||
"javascript", | ||
"styleguide", | ||
"es2015", | ||
"es2016", | ||
"es2017", | ||
"es2018", | ||
"plural" | ||
], | ||
"author": { | ||
"name": "Ahmed Tarek", | ||
"email": "[email protected]", | ||
"url": "https://github.com/A-Tokyo" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/pluralcom/eslint-config-plural/issues" | ||
}, | ||
"homepage": "https://github.com/pluralcom/eslint-config-plural#readme", | ||
"homepage": "https://github.com/pluralcom/eslint-config-plural", | ||
"dependencies": { | ||
"eslint": "^3.17.1", | ||
"eslint-config-airbnb": "^14.1.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^4.0.0", | ||
"eslint-plugin-react": "^6.10.0", | ||
"eslint-plugin-react-native": "^1.0.0" | ||
"eslint-config-airbnb": "^17.0.0", | ||
"eslint-config-airbnb-base": "^13.0.0", | ||
"object.assign": "^4.1.0", | ||
"object.entries": "^1.0.4" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.15.0", | ||
"tape": "^4.6.3", | ||
"babel-preset-airbnb": "^2.2.3", | ||
"babel-preset-airbnb": "^2.5.1", | ||
"babel-tape-runner": "^2.0.1", | ||
"editorconfig-tools": "^0.1.1", | ||
"eslint": "^3.17.1", | ||
"eslint-find-rules": "^1.14.3", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint": "^4.19.1", | ||
"eslint-find-rules": "^3.3.1", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.3", | ||
"eslint-plugin-react": "^7.10.0", | ||
"in-publish": "^2.0.0", | ||
"react": ">= 0.13.0", | ||
"safe-publish-latest": "^1.1.1", | ||
"tape": "^4.6.3" | ||
"tape": "^4.9.1" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">=3.15.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^4.0.0", | ||
"eslint-plugin-react": "^6.10.0", | ||
"eslint-plugin-react-native": "^1.0.0" | ||
"eslint": "^4.19.1", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.3", | ||
"eslint-plugin-react": "^7.10.0" | ||
}, | ||
"engines": { | ||
"node": ">= 4" | ||
} | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Ahmed Tarek", | ||
"email": "[email protected]", | ||
"url": "https://github.com/A-Tokyo" | ||
} | ||
] | ||
} |
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,8 @@ | ||
module.exports = { | ||
rules: { | ||
camelcase: 0, | ||
'no-underscore-dangle': 0, | ||
'arrow-parens': 0, | ||
'no-confusing-arrow': 0, | ||
}, | ||
}; |
Oops, something went wrong.