Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

ESLint RC rule not working, while rule comment works and other rules do

$
0
0

When I use this comment with the following code, it reformats the code:

/*eslint object-property-newline: "error"*/const obj1 = { foo: 'foo', bar: 'bar', baz: 'baz' };

However, when I add this line to my ESLint RC file instead, it doesn't reformat, while other rules seems to apply.

rules: {'object-property-newline': 'error', 'other rules': 'warn',    // ...}

Does anyone have an idea?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>