This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
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 branch 'task/add-eslint' into task/add-prettier
- Loading branch information
Showing
5 changed files
with
83 additions
and
0 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,24 @@ | ||
# @bufferapp/eslint-config-bufferapp | ||
|
||
This is the standard ESLint config files for the projects within the @bufferapp | ||
GitHub organization. | ||
|
||
## Usage | ||
|
||
```console | ||
npm install --save-dev @bufferapp/eslint-config eslint | ||
# or | ||
yarn add -D @bufferapp/eslint-config eslint | ||
``` | ||
|
||
NOTE: We will need to define custom installation instructions for front-end | ||
and backend-based configs, depending on those we will have different | ||
`peerDependencies` for the ESLint configs. | ||
|
||
And then, on your `.eslintrc` use: | ||
|
||
``` | ||
"extends": "@bufferapp/eslint-config-bufferapp/backend" | ||
#or | ||
"extends": "@bufferapp/eslint-config-bufferapp/frontend" | ||
``` |
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 @@ | ||
module.exports = { | ||
extends: [ | ||
"./index.js", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier/@typescript-eslint" | ||
], | ||
plugins: [ | ||
"typescript-eslint", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
ignorePatterns: ["node_modules/*"], | ||
env: { | ||
node: true, | ||
es6: true, | ||
jest: 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,15 @@ | ||
module.exports = { | ||
extends: [ | ||
"./index.js", | ||
"plugin:react/recommended", | ||
"prettier/react" | ||
], | ||
plugins: [ | ||
"react", | ||
], | ||
env: { | ||
browser: true, | ||
es6: true, | ||
jest: 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,13 @@ | ||
module.exports = { | ||
extends: [ | ||
"standard", | ||
"eslint:recommended", | ||
"prettier", | ||
], | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: "module" | ||
}, | ||
plugins: ["prettier", "jest"], | ||
} | ||
|
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,14 @@ | ||
{ | ||
"name": "@bufferapp/eslint-config-bufferapp", | ||
"version": "0.0.1", | ||
"description": "This package provides Buffer's ESLint as an extensible shared config, and specific backend/frontend setups.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "Mike San Román <[email protected]>", | ||
"license": "ISC", | ||
"peerDependencies": { | ||
"eslint": ">= 6" | ||
} | ||
} |