-
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.
Merge pull request #1 from job13er/initial-files
Initial files
- Loading branch information
Showing
8 changed files
with
2,247 additions
and
2 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,2 @@ | ||
const config = require('./index') | ||
module.exports = config |
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, | ||
"printWidth": 120, | ||
"semi": false, | ||
"singleQuote": 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
<!-- | ||
The bumpr comment below is there to allow the bumpr project to automatically maintain this CHANGELOG, using PR | ||
descriptions. Please do not remove it, as this will break continuous integration. | ||
--> | ||
|
||
<!-- bumpr --> | ||
|
||
## [0.1.0] - 2018-05-07 | ||
### Added | ||
- All initial files |
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 |
---|---|---|
@@ -1,2 +1,18 @@ | ||
# eslint-config-airbnb-prettier | ||
eslint configuration that uses air-bnb-base and extends it to not conflict with prettier. | ||
`eslint` configuration that uses `eslint-config-airbnb-base` and extends it to not conflict with `prettier`. | ||
|
||
## Usage | ||
|
||
If you use yarn, run | ||
|
||
``` | ||
npm info "eslint-config-airbnb-prettier@latest" peerDependencies | ||
``` | ||
|
||
to list the peer dependencies and versions, then run | ||
|
||
``` | ||
yarn add --dev <dependency>@<version> | ||
``` | ||
|
||
for each listed peer dependency. |
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,23 @@ | ||
module.exports = { | ||
extends: ['airbnb-base'], | ||
|
||
// Globals for jest | ||
globals: { | ||
afterEach: false, | ||
beforeEach: false, | ||
describe: false, | ||
expect: false, | ||
it: false, | ||
jest: false | ||
}, | ||
|
||
rules: { | ||
'arrow-parens': 'off', // conflicts with prettier | ||
'function-paren-newline': 'off', // conflicts with prettier | ||
'comma-dangle': ['error', 'never'], // conflicts with prettier | ||
'max-len': ['error', 120], // to match prettier settings | ||
'object-curly-spacing': ['error', 'never'], // to match prettier settings | ||
'object-curly-newline': 'off', // conflicts with prettier | ||
semi: ['error', 'never'] // to match prettier settings | ||
} | ||
} |
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,28 @@ | ||
{ | ||
"name": "eslint-config-airbnb-prettier", | ||
"version": "0.1.0", | ||
"description": "airbnb-base with overrides to work with prettier", | ||
"main": "index.js", | ||
"repository": "[email protected]:jobsquad/eslint-config-airbnb-prettier.git", | ||
"author": "Adam Meadows [https://github.com/job13er]", | ||
"license": "MIT", | ||
"lint-staged": { | ||
"src/**/*.{js,jsx,json,css}": [ | ||
"prettier --config .prettierrc.json --write", | ||
"git add" | ||
] | ||
}, | ||
"scripts": { | ||
"precommit": "lint-staged" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-plugin-import": "^2.11.0" | ||
}, | ||
"devDependencies": { | ||
"husky": "^0.14.3", | ||
"lint-staged": "^7.1.0", | ||
"prettier": "^1.12.1" | ||
} | ||
} |
Oops, something went wrong.