Hi guys,
Sorry for polluting the issues, but I think that my question is something that others are likely to search for here too.
After the recent release of node 7.6 with async/await supported even without --harmony, I decided to drop babel from my node app, but keep linting rules from airbnb-base. Because bare node still does not support import * from syntax, I wanted to inherit the esling config, but introduce a rule that would report occurrences of import/export as errors, while keeping require & module.exports acceptable. Sadly, after two hours I'm still when I have started, i.e. both import and require are considered acceptable by eslint.
Could anyone suggest what one should put in their eslintConfig in addition to extends: "eslint-config-airbnb-base" to achieve a proper alignment with what node 7 can do on its own?
One important thing to change that I have discovered by now is this:
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: false,
},
},
Cheers!
Hi guys,
Sorry for polluting the issues, but I think that my question is something that others are likely to search for here too.
After the recent release of node 7.6 with
async/awaitsupported even without--harmony, I decided to drop babel from my node app, but keep linting rules from airbnb-base. Because bare node still does not supportimport * fromsyntax, I wanted to inherit the esling config, but introduce a rule that would report occurrences ofimport/exportas errors, while keepingrequire&module.exportsacceptable. Sadly, after two hours I'm still when I have started, i.e. bothimportandrequireare considered acceptable by eslint.Could anyone suggest what one should put in their
eslintConfigin addition toextends: "eslint-config-airbnb-base"to achieve a proper alignment with what node 7 can do on its own?One important thing to change that I have discovered by now is this:
Cheers!