Skip to content

Commit

Permalink
Add config for Preact
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Nov 1, 2016
1 parent d749f02 commit 23f738c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions preact.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
extends: [
'wyze',
'wyze/rules/preact'
],
settings: {
react: {
createClass: 'h',
pragma: 'preact',
version: '6.0'
}
}
}
6 changes: 6 additions & 0 deletions rules/preact.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
rules: {
// Maybe revisit this and write custom rules for Preact
'react/no-deprecated': [0]
}
}

0 comments on commit 23f738c

Please sign in to comment.