Skip to content

Commit

Permalink
feat: support CSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 27, 2021
1 parent edaa2c8 commit db67a83
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ module.exports = {
"files": ["*.yaml", "*.yml"],
"plugins": ["yaml"],
"extends": ["plugin:yaml/recommended"]
},
// CSON files (use coffee)
{
"files": ["**/*.cson"],
"parser": "eslint-plugin-coffee",
"plugins": ["coffee", "only-warn"],
"extends": ["plugin:coffee/eslint-recommended"]
}
]
}
7 changes: 7 additions & 0 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ module.exports = {
"files": ["*.yaml", "*.yml"],
"plugins": ["yaml"],
"extends": ["plugin:yaml/recommended"]
},
// CSON files (use coffee)
{
"files": ["**/*.cson"],
"parser": "eslint-plugin-coffee",
"plugins": ["coffee", "only-warn"],
"extends": ["plugin:coffee/eslint-recommended"]
}
],
"settings": {
Expand Down
7 changes: 7 additions & 0 deletions strict-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ module.exports = {
"files": ["*.yaml", "*.yml"],
"plugins": ["yaml"],
"extends": ["plugin:yaml/recommended"]
},
// CSON files (use coffee)
{
"files": ["**/*.cson"],
"parser": "eslint-plugin-coffee",
"plugins": ["coffee", "only-warn"],
"extends": ["plugin:coffee/eslint-recommended"]
}
],
"settings": {
Expand Down
7 changes: 7 additions & 0 deletions strict.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ module.exports = {
"files": ["*.yaml", "*.yml"],
"plugins": ["yaml"],
"extends": ["plugin:yaml/recommended"]
},
// CSON files (use coffee)
{
"files": ["**/*.cson"],
"parser": "eslint-plugin-coffee",
"plugins": ["coffee", "only-warn"],
"extends": ["plugin:coffee/eslint-recommended"]
}
]
}

0 comments on commit db67a83

Please sign in to comment.