From db67a8323e3a19662c34ddbe485112e20fd5a297 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 27 Jan 2021 04:38:43 -0600 Subject: [PATCH] feat: support CSON files --- index.js | 7 +++++++ react.js | 7 +++++++ strict-react.js | 7 +++++++ strict.js | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/index.js b/index.js index d4b2086..d6b2f45 100644 --- a/index.js +++ b/index.js @@ -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"] } ] } diff --git a/react.js b/react.js index 01eb8d8..13f5bd9 100644 --- a/react.js +++ b/react.js @@ -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": { diff --git a/strict-react.js b/strict-react.js index 996d30a..4f4f8c0 100644 --- a/strict-react.js +++ b/strict-react.js @@ -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": { diff --git a/strict.js b/strict.js index 170aad3..3c68873 100644 --- a/strict.js +++ b/strict.js @@ -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"] } ] }