Skip to content

Commit

Permalink
Merge pull request #1 from job13er/initial-files
Browse files Browse the repository at this point in the history
Initial files
  • Loading branch information
job13er authored May 7, 2018
2 parents 1baeb8d + 65e3fec commit 735ff66
Show file tree
Hide file tree
Showing 8 changed files with 2,247 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const config = require('./index')
module.exports = config
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bracketSpacing": false,
"printWidth": 120,
"semi": false,
"singleQuote": true
}
17 changes: 17 additions & 0 deletions CHANGELOG.md
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 jobsquad
Copyright (c) 2018 Adam Meadows

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 17 additions & 1 deletion README.md
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.
23 changes: 23 additions & 0 deletions index.js
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
}
}
28 changes: 28 additions & 0 deletions package.json
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"
}
}
Loading

0 comments on commit 735ff66

Please sign in to comment.