Skip to content

Commit

Permalink
Merge pull request #1 from twentyideas:react-native-eslint
Browse files Browse the repository at this point in the history
Support React-native-eslint
  • Loading branch information
mckelveygreg authored Dec 6, 2021
2 parents 51026bf + bb57b22 commit 806daeb
Show file tree
Hide file tree
Showing 4 changed files with 272 additions and 96 deletions.
7 changes: 3 additions & 4 deletions eslint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { install, json, lines, packageJson } from "mrm-core"

module.exports = function () {
const packages = {
"@20i/eslint-config": "^1.1.0",
eslint: "^8.3.0",
"@20i/eslint-config": "^1.2.0",
eslint: "^8.4.0",
prettier: "^2.5.0",
typescript: "^4.5.0",
}
Expand All @@ -13,8 +13,7 @@ module.exports = function () {
"dependencies.react-native"
) as boolean
if (hasReactNative) {
// TODO: add react-native
console.warn("React native not setup yet")
baseExtends = "@20i/eslint-config/react-native"
} else if (hasReact) {
baseExtends = "@20i/eslint-config/react"
}
Expand Down
4 changes: 4 additions & 0 deletions gitignore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ module.exports = function task() {
".DS_Store",
".vscode/",
".idea/",
"",
"# environment variables",
".env",
"",
"# yarn berry: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored",
".yarn/*",
"!.yarn/patches",
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@20i/mrm-preset",
"version": "1.0.0",
"version": "1.1.0",
"description": "mrm preset to set up eslint, prettier, lint-staged, husky, and typescript",
"repository": "https://github.com/twentyideas/mrm-preset.git",
"homepage": "https://github.com/twentyideas/mrm-preset",
Expand Down Expand Up @@ -32,13 +32,13 @@
"mrm-core": "^6.1.7"
},
"devDependencies": {
"@20i/eslint-config": "^1.1.0",
"eslint": "^8.3.0",
"husky": "^7.0.0",
"lint-staged": "^12.1.0",
"@20i/eslint-config": "^1.2.0",
"eslint": "^8.4.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.2",
"mrm": "^3.0.10",
"pinst": "^2.0.0",
"prettier": "^2.5.0",
"pinst": "^2.1.6",
"prettier": "^2.5.1",
"typescript": "^4.5.2"
},
"scripts": {
Expand Down
Loading

0 comments on commit 806daeb

Please sign in to comment.