New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-naturalatlas

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-naturalatlas - npm Package Compare versions

Comparing version 0.1.3 to 1.0.0

test/.eslintrc

3

base.js

@@ -160,7 +160,6 @@ module.exports = {

}],
'space-after-keywords': 2,
'keyword-spacing': 2,
'space-before-blocks': 2,
'space-before-function-paren': [2, 'never'],
'space-infix-ops': 2,
'space-return-throw-case': 2,
'spaced-comment': [2, 'always', {

@@ -167,0 +166,0 @@ 'exceptions': ['-', '+'],

{
"name": "eslint-config-naturalatlas",
"version": "0.1.3",
"version": "1.0.0",
"description": "Natural Atlas ESLint configuration",

@@ -5,0 +5,0 @@ "main": "base.js",

var a=1;
var b=(a+1)*2;
if(a == 1){
if(a===1){
switch(a){

@@ -5,0 +5,0 @@ case'a':

@@ -0,1 +1,2 @@

/* eslint no-console: 0 */
var fs = require('fs');

@@ -18,4 +19,4 @@ var path = require('path');

if (err) {
if (stdout) console.log('stdout:', stdout);
if (stderr) console.log('stderr:', stderr);
console.log('stdout:', stdout || '(none)');
console.log('stderr:', stderr || '(none)');
throw err;

@@ -29,2 +30,22 @@ }

});
it('should correct source properly [react]', function(done) {
var input = __dirname + '/fixtures/fix-input.js';
var original = fs.readFileSync(input, 'utf8');
exec(bin + ' ' + input + ' -c react.js --fix', function(err, stdout, stderr) {
var actual = fs.readFileSync(input, 'utf8');
fs.writeFileSync(input, original); // restore original
fs.writeFileSync(__dirname + '/output/out-react.js', actual); // for debugging
if (err) {
console.log('stdout:', stdout || '(none)');
console.log('stderr:', stderr || '(none)');
throw err;
}
var expected = fs.readFileSync(__dirname + '/fixtures/fix-output.js', 'utf8');
assert.equal(actual, expected);
done();
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc